summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2007-11-26 23:06:39 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-02-01 22:42:06 +0100
commit39325bd03fc16d903f1e0f51104436d939899c8c (patch)
treede63f3c58a3b82d26223e4dfdda1a98570c5a84a /include
parentlockd: fix reference count leaks in async locking case (diff)
downloadlinux-39325bd03fc16d903f1e0f51104436d939899c8c.tar.xz
linux-39325bd03fc16d903f1e0f51104436d939899c8c.zip
nfsd4: fix bad seqid on lock request incompatible with open mode
The failure to return a stateowner from nfs4_preprocess_seqid_op() means in the case where a lock request is of a type incompatible with an open (due to, e.g., an application attempting a write lock on a file open for read), means that fs/nfsd/nfs4xdr.c:ENCODE_SEQID_OP_TAIL() never bumps the seqid as it should. The client, attempting to close the file afterwards, then gets an (incorrect) bad sequence id error. Worse, this prevents the open file from ever being closed, so we leak state. Thanks to Benny Halevy and Trond Myklebust for analysis, and to Steven Wilton for the report and extensive data-gathering. Cc: Benny Halevy <bhalevy@panasas.com> Cc: Steven Wilton <steven.wilton@team.eftel.com.au> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions