lockd: save lock state on deferral
authorMarc Eshel <eshel@almaden.ibm.com>
Tue, 28 Nov 2006 21:26:47 +0000 (16:26 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 7 May 2007 00:38:50 +0000 (20:38 -0400)
commit2b36f412ab6f2e5b64af9832b20eb7ef67d025b4
treeb4a561cc944d25d96798f97d06bd78760db7afba
parent2beb6614f5e36c6165b704c167d82ef3e4ceaa0c
lockd: save lock state on deferral

We need to keep some state for a pending asynchronous lock request, so this
patch adds that state to struct nlm_block.

This also adds a function which defers the request, by calling
rqstp->rq_chandle.defer and storing the resulting deferred request in a
nlm_block structure which we insert into lockd's global block list.  That
new function isn't called yet, so it's dead code until a later patch.

Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/svclock.c
include/linux/lockd/lockd.h