nfsd: wake blocked file lock waiters before sending callback
When a blocked NFS lock is "awoken" we send a callback to the server and
then wake any hosts waiting on it. If a client attempts to get a lock
and then drops off the net, we could end up waiting for a long time
until we end up waking locks blocked on that request.
So, wake any other waiting lock requests before sending the callback.
Do this by calling locks_delete_block in a new "prepare" phase for
Fixes: 16306a61d3b7 ("fs/locks: always delete_block after waiting.")
Reported-by: Slawomir Pryczek <firstname.lastname@example.org>
Cc: Neil Brown <email@example.com>
Signed-off-by: Jeff Layton <firstname.lastname@example.org>
Signed-off-by: J. Bruce Fields <email@example.com>
1 file changed