]> Git Repo - linux.git/commit
fs/locks: always delete_block after waiting.
authorNeilBrown <[email protected]>
Thu, 29 Nov 2018 23:04:08 +0000 (10:04 +1100)
committerJeff Layton <[email protected]>
Fri, 7 Dec 2018 11:49:17 +0000 (06:49 -0500)
commit16306a61d3b7c433c7a127ec6224867b88ece687
treed508c05395c69817dd98bece9efcac1c4a7074b3
parent5946c4319ebb39af17fb9d6a606c866ce9b88740
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: NeilBrown <[email protected]>
Reviewed-by: J. Bruce Fields <[email protected]>
Tested-by: [email protected]
Tested-by: kernel test robot <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
fs/locks.c
This page took 0.057369 seconds and 4 git commands to generate.