]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix another bug in the close/open_downgrade code
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 18 Sep 2014 15:51:32 +0000 (11:51 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 18 Sep 2014 17:04:22 +0000 (13:04 -0400)
commite86a65b748514ce7f8eb71510a03b4b2106648cf
tree82bddbe31030ef1c460d0df957afb55ff1d99283
parente2c9710fc72890d4a996c194326c32cdc6b4d5d9
NFSv4: Fix another bug in the close/open_downgrade code

James Drew reports another bug whereby the NFS client is now sending
an OPEN_DOWNGRADE in a situation where it should really have sent a
CLOSE: the client is opening the file for O_RDWR, but then trying to
do a downgrade to O_RDONLY, which is not allowed by the NFSv4 spec.

Reported-by: James Drews <drews@engr.wisc.edu>
Link: http://lkml.kernel.org/r/541AD7E5.8020409@engr.wisc.edu
Fixes: 982c85346007 (NFSv4: Fix problems with close in the presence...)
Cc: stable@vger.kernel.org # 2.6.33+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c