Skip to content
Commit 16306a61 authored by NeilBrown's avatar NeilBrown Committed by Jeff Layton
Browse files

fs/locks: always delete_block after waiting.



Now that requests can block other requests, we
need to be careful to always clean up those blocked
requests.
Any time that we wait for a request, we might have
other requests attached, and when we stop waiting,
we must clean them up.
If the lock was granted, the requests might have been
moved to the new lock, though when merged with a
pre-exiting lock, this might not happen.
In all cases we don't want blocked locks to remain
attached, so we remove them to be safe.

Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Reviewed-by: default avatarJ. Bruce Fields <bfields@redhat.com>
Tested-by: default avatar <syzbot+a4a3d526b4157113ec6a@syzkaller.appspotmail.com>
Tested-by: default avatarkernel test robot <rong.a.chen@intel.com>
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
parent 5946c431
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment