android_kernel_samsung_msm8976/fs/nfsd
J. Bruce Fields 3d02fa29de nfsd4: fix open downgrade, again
Yet another open-management regression:

	- nfs4_file_downgrade() doesn't remove the BOTH access bit on
	  downgrade, so the server's idea of the stateid's access gets
	  out of sync with the client's.  If we want to keep an O_RDWR
	  open in this case, we should do that in the file_put_access
	  logic rather than here.
	- We forgot to convert v4 access to an open mode here.

This logic has proven too hard to get right.  In the future we may
consider:
	- reexamining the lock/openowner relationship (locks probably
	  don't really need to take their own references here).
	- adding open upgrade/downgrade support to the vfs.
	- removing the atomic operations.  They're redundant as long as
	  this is all under some other lock.

Also, maybe some kind of additional static checking would help catch
O_/NFS4_SHARE_ACCESS confusion.

Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2011-09-20 14:43:39 -04:00
..
acl.h
auth.c
auth.h
cache.h nfsd: turn on reply cache for NFSv4 2011-07-18 09:39:01 -04:00
export.c NFSD: Remove the ex_pathname field from struct svc_export 2011-09-13 22:44:10 -04:00
idmap.h
Kconfig
lockd.c
Makefile
nfs2acl.c
nfs3acl.c
nfs3proc.c
nfs3xdr.c
nfs4acl.c
nfs4callback.c nfsd4: add common dl_stid field to delegation 2011-09-13 18:30:32 -04:00
nfs4idmap.c
nfs4proc.c nfsd4: replace oo_confirmed by flag bit 2011-09-16 17:44:16 -04:00
nfs4recover.c nfsd4: stop using nfserr_resource for transitory errors 2011-08-27 14:21:21 -04:00
nfs4state.c nfsd4: fix open downgrade, again 2011-09-20 14:43:39 -04:00
nfs4xdr.c nfsd4: match close replays on stateid, not open owner id 2011-09-17 10:01:54 -04:00
nfscache.c nfsd: turn on reply cache for NFSv4 2011-07-18 09:39:01 -04:00
nfsctl.c nfsd: remove include/linux/nfsd/syscall.h 2011-08-31 11:50:11 -04:00
nfsd.h NFSD: Add a cache for fs_locations information 2011-09-13 22:44:17 -04:00
nfsfh.c nfsd: clean up nfsd_mode_check() 2011-08-26 18:22:48 -04:00
nfsfh.h
nfsproc.c
nfssvc.c nfsd: turn on reply cache for NFSv4 2011-07-18 09:39:01 -04:00
nfsxdr.c
state.h nfsd4: hash closed stateid's like any other 2011-09-19 08:39:34 -04:00
stats.c
vfs.c NFSD: Add a cache for fs_locations information 2011-09-13 22:44:17 -04:00
vfs.h nfsd: prettify NFSD_MAY_* flag definitions 2011-08-27 14:20:21 -04:00
xdr.h
xdr3.h
xdr4.h nfsd41: try to check reply size before operation 2011-09-16 10:31:01 -04:00