nfsd4: fix file open accounting for RDWR opens
authorJ. Bruce Fields <bfields@pad.home.fieldses.org>
Sat, 7 Aug 2010 13:21:41 +0000 (09:21 -0400)
committerJ. Bruce Fields <bfields@pad.home.fieldses.org>
Sat, 7 Aug 2010 13:50:05 +0000 (09:50 -0400)
commit998db52c03cd293d16a457f1b396cea932244147
tree6546b0752c402c458723242e3a03723e2083040b
parent7fa53cc872332b265bc5ba1266f39586f218ad4a
nfsd4: fix file open accounting for RDWR opens

Commit f9d7562fdb9dc0ada3a7aba5dbbe9d965e2a105d "nfsd4: share file
descriptors between stateid's" didn't correctly account for O_RDWR opens.
Symptoms include leaked files, resulting in failures to unmount and/or
warnings about orphaned inodes on reboot.

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