]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ae48b3db2eb4003d090f8b68c6ad9e561659b54
tree6546b0752c402c458723242e3a03723e2083040b
parent3e76aaf2570d2f5b05b4a927cead6009295c18d8
nfsd4: fix file open accounting for RDWR opens

Commit cb334ba06f34e06a42f1aee0d0fcc016fb0c9c51 "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