diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-07-23 21:46:49 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-23 22:20:47 +0400 |
commit | 2f6ce8e73caa443201e3d826639b9242cf6ea568 (patch) | |
tree | 7932c333d008c0cd91d5e38cb8954b2bfbda461d /include/linux/futex.h | |
parent | e560e3b510d22e06081a72a4d49e559b9e392659 (diff) | |
download | linux-2f6ce8e73caa443201e3d826639b9242cf6ea568.tar.xz |
nfsd: ensure that st_access_bmap and st_deny_bmap are initialized to 0
Open stateids must be initialized with the st_access_bmap and
st_deny_bmap set to 0, so that nfs4_get_vfs_file can properly record
their state in old_access_bmap and old_deny_bmap.
This bug was introduced in commit baeb4ff0e502 (nfsd: make deny mode
enforcement more efficient and close races in it) and was causing the
refcounts to end up incorrect when nfs4_get_vfs_file returned an error
after bumping the refcounts. This made it impossible to unmount the
underlying filesystem after running pynfs tests that involve deny modes.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/futex.h')
0 files changed, 0 insertions, 0 deletions