mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
In lf_purgelocks(), assert that state->ls_pending is empty after we
weeded out threads, and clean ls_active instead of ls_pending. Reviewed by: dfr Tested by: pho MFC after: 1 month
This commit is contained in:
parent
b33d617717
commit
9727972e2c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192684
@ -813,7 +813,9 @@ lf_purgelocks(struct vnode *vp, struct lockf **statep)
|
||||
* above). We don't need to bother locking since we
|
||||
* are the last thread using this state structure.
|
||||
*/
|
||||
LIST_FOREACH_SAFE(lock, &state->ls_pending, lf_link, nlock) {
|
||||
KASSERT(LIST_EMPTY(&state->ls_pending),
|
||||
("lock pending for %p", state));
|
||||
LIST_FOREACH_SAFE(lock, &state->ls_active, lf_link, nlock) {
|
||||
LIST_REMOVE(lock, lf_link);
|
||||
lf_free_lock(lock);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user