Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
1f67e932
Commit
1f67e932
authored
21 years ago
by
Andreas Dilger
Browse files
Options
Downloads
Patches
Plain Diff
Land fix for bug 1558 on HEAD. r=phil,shaver
parent
55f1bc22
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lustre/ldlm/ldlm_lock.c
+4
-0
4 additions, 0 deletions
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
+1
-5
1 addition, 5 deletions
lustre/ldlm/ldlm_lockd.c
with
5 additions
and
5 deletions
lustre/ldlm/ldlm_lock.c
+
4
−
0
View file @
1f67e932
...
...
@@ -153,6 +153,8 @@ void ldlm_lock_put(struct ldlm_lock *lock)
ldlm_resource_putref
(
lock
->
l_resource
);
lock
->
l_resource
=
NULL
;
if
(
lock
->
l_export
)
class_export_put
(
lock
->
l_export
);
if
(
lock
->
l_parent
)
LDLM_LOCK_PUT
(
lock
->
l_parent
);
...
...
@@ -220,6 +222,8 @@ void ldlm_lock_destroy(struct ldlm_lock *lock)
/* Wake anyone waiting for this lock */
/* FIXME: I should probably add yet another flag, instead of using
* l_export to only call this on clients */
if (lock->l_export)
class_export_put(lock->l_export);
lock->l_export = NULL;
if (lock->l_export && lock->l_completion_ast)
lock->l_completion_ast(lock, 0);
...
...
This diff is collapsed.
Click to expand it.
lustre/ldlm/ldlm_lockd.c
+
1
−
5
View file @
1f67e932
...
...
@@ -179,8 +179,6 @@ static int ldlm_add_waiting_lock(struct ldlm_lock *lock)
}
list_add_tail
(
&
lock
->
l_pending_chain
,
&
waiting_locks_list
);
/* FIFO */
spin_unlock_bh
(
&
waiting_locks_spinlock
);
/* We drop this ref when we get removed from the list. */
class_export_get
(
lock
->
l_export
);
return
1
;
}
...
...
@@ -223,8 +221,6 @@ int ldlm_del_waiting_lock(struct ldlm_lock *lock)
}
list_del_init
(
&
lock
->
l_pending_chain
);
spin_unlock_bh
(
&
waiting_locks_spinlock
);
/* We got this ref when we were added to the list. */
class_export_put
(
lock
->
l_export
);
LDLM_DEBUG
(
lock
,
"removed"
);
return
1
;
}
...
...
@@ -468,7 +464,7 @@ int ldlm_handle_enqueue(struct ptlrpc_request *req,
LDLM_DEBUG
(
lock
,
"server-side enqueue handler, new lock created"
);
LASSERT
(
req
->
rq_export
);
lock
->
l_export
=
req
->
rq_export
;
lock
->
l_export
=
class_export_get
(
req
->
rq_export
)
;
l_lock
(
&
lock
->
l_resource
->
lr_namespace
->
ns_lock
);
list_add
(
&
lock
->
l_export_chain
,
&
lock
->
l_export
->
exp_ldlm_data
.
led_held_locks
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment