]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: We must set NFS_OPEN_STATE flag in nfs_resync_open_stateid_locked
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 22 Jul 2015 17:46:13 +0000 (13:46 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 22 Jul 2015 21:10:51 +0000 (17:10 -0400)
commitdd14c29f54aa3ac5219967d3d3273c6eb4fa7b28
tree8d7c93a04f8d888ecd37913f9806e61367594efe
parentca0ae74a701238cc1847093f72c0c8bd6dd44cf1
NFSv4: We must set NFS_OPEN_STATE flag in nfs_resync_open_stateid_locked

Otherwise, nfs4_select_rw_stateid() will always return the zero stateid
instead of the correct open stateid.

Fixes: 254e8415153d8 ("NFSv4: More CLOSE/OPEN races")
Cc: stable@vger.kernel.org # 4.0+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c