]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Aug 2015 19:21:58 +0000 (12:21 -0700)
commitc7231368e696a31c78e61189273999c0b5243bbf
tree39589944871a7ff1a3d442506d853b267e6e4af9
parentc9bb1d26fe5747a4dbea75fe37e6474f6abbcdad
NFSv4: We must set NFS_OPEN_STATE flag in nfs_resync_open_stateid_locked

commit 3c38cbe2ade88240fabb585b408f779ad3b9a31b upstream.

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

Fixes: f95549cf24660 ("NFSv4: More CLOSE/OPEN races")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c