]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: don't pretend to support write delegations
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 28 Jul 2010 14:08:57 +0000 (10:08 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 29 Jul 2010 20:05:51 +0000 (16:05 -0400)
commit4ef6e70e95f7e6b5a316e88eaffcd6de2ee0d746
tree80dc34d9cec1992a7aee96146ce668384aa7d30a
parenta11ca8406b390fee1a1dc81382ad295c03ea5b22
nfsd4: don't pretend to support write delegations

The delegation code mostly pretends to support either read or write
delegations.  However, correct support for write delegations would
require, for example, breaking of delegations (and/or implementation of
cb_getattr) on stat.  Currently all that stops us from handing out
delegations is a subtle reference-counting issue.

Avoid confusion by adding an earlier check that explicitly refuses write
delegations.

For now, though, I'm not going so far as to rip out existing
half-support for write delegations, in case we get around to using that
soon.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c