diff options
author | J. Bruce Fields <bfields@redhat.com> | 2010-08-20 18:09:31 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-08-26 13:22:02 -0400 |
commit | 7d94784293096c0a46897acdb83be5abd9278ece (patch) | |
tree | da2bc54b7d2527b465833610d80ec0285b90c8a7 /fs/xfs/linux-2.6/xfs_ioctl.c | |
parent | 18608ad49cffa430cfd0b4e027dedfe3114f916e (diff) | |
download | op-kernel-dev-7d94784293096c0a46897acdb83be5abd9278ece.zip op-kernel-dev-7d94784293096c0a46897acdb83be5abd9278ece.tar.gz |
nfsd4: fix downgrade/lock logic
If we already had a RW open for a file, and get a readonly open, we were
piggybacking on the existing RW open. That's inconsistent with the
downgrade logic which blows away the RW open assuming you'll still have
a readonly open.
Also, make sure there is a readonly or writeonly open available for
locking, again to prevent bad behavior in downgrade cases when any RW
open may be lost.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl.c')
0 files changed, 0 insertions, 0 deletions