[PATCH] nfsd4: fix open seqid incrementing in lock
authorNeil Brown <neilb@suse.de>
Tue, 13 Sep 2005 08:25:38 +0000 (01:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Sep 2005 15:22:32 +0000 (08:22 -0700)
commitb59e3c0e172e3f3a147021aa16b929482b8d5846
tree60aec6ff8a214adfa828af8a89460aca55731d46
parentf2327d9adb1e948a7041128e971effd8d6e2d42c
[PATCH] nfsd4: fix open seqid incrementing in lock

In the case of a lock which introduces a new lockowner, the openowner's
sequence id should be incremented, even when the operation fails, if the
error is a sequence-id-mutating error.  The current code fails to do that
in some cases.  Fix this by using the same sequence-id-incrementing
mechanism that all other such operations use.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4state.c