]> err.no Git - linux-2.6/commit
knfsd: nfsd4: don't delegate files that have had conflicts
authorMeelap Shah <meelap@umich.edu>
Tue, 17 Jul 2007 11:04:40 +0000 (04:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:07 +0000 (10:23 -0700)
commit47f9940c55c0bdc65188749cae4e841601f513bb
treeff24a78f815591d8309e368e504347371d96ef60
parentc2f1a551dea8b37c2e0cb886885c250fb703e9d8
knfsd: nfsd4: don't delegate files that have had conflicts

One more incremental delegation policy improvement: don't give out a
delegation on a file if conflicting access has previously required that a
delegation be revoked on that file.  (In practice we'll forget about the
conflict when the struct nfs4_file is removed on close, so this is of limited
use for now, though it should at least solve a temporary problem with
self-conflicts on write opens from the same client.)

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