]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix locking in pnfs_generic_recover_commit_reqs
authorTrond Myklebust <trondmy@gmail.com>
Tue, 14 Aug 2018 21:25:37 +0000 (17:25 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Aug 2018 15:43:38 +0000 (11:43 -0400)
commitb6da76785c112c001e5ebcb2adcc39d63f32f345
tree8c22f2a2e8d4d1a406801969eccdc7bbc97c7e01
parent9c9178dd901caaee3116a97c6c9c82ad4d53933b
NFSv4: Fix locking in pnfs_generic_recover_commit_reqs

The use of the inode->i_lock was converted to a mutex, but we forgot
to remove the old inode unlock/lock() pair that allowed the layout
segment to be put inside the loop.

Reported-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Fixes: 03921957f5d02 ("NFSv4: Use a mutex to protect the per-inode commit...")
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs_nfs.c