]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] NLM: fix a client-side race on blocking locks.
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 17:16:31 +0000 (17:16 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 20:07:42 +0000 (16:07 -0400)
commited4cc8c5ad0a0cb19b8979f1c437b0d7f57c959f
tree9d02ce4daee662c2711762564662cebc521e3da3
parent671bc743bfe188bd534999c3b9f6918189fc33dc
[PATCH] NLM: fix a client-side race on blocking locks.

 If the lock blocks, the server may send us a GRANTED message that
 races with the reply to our LOCK request. Make sure that we catch
 the GRANTED by queueing up our request on the nlm_blocked list
 before we send off the first LOCK rpc call.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/clntlock.c
fs/lockd/clntproc.c
include/linux/lockd/lockd.h