]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix races nfs_page_group_destroy() vs nfs_destroy_unlinked_subrequests()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Apr 2020 17:04:49 +0000 (13:04 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Apr 2020 17:34:28 +0000 (13:34 -0400)
commitd333c474bf52edc0830f38155be49eeb1576dea1
tree353ac3390753c2e92e5238c0499f0cbbb8eae294
parenta13f2dd6300bf70042057c2f3dbf8ab9b6bbe4d5
NFS: Fix races nfs_page_group_destroy() vs nfs_destroy_unlinked_subrequests()

When a subrequest is being detached from the subgroup, we want to
ensure that it is not holding the group lock, or in the process
of waiting for the group lock.

Fixes: 207269b5a8a8 ("NFS: Fix nfs_page_group_destroy() and nfs_lock_and_join_requests() race cases")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pagelist.c
fs/nfs/write.c
include/linux/nfs_page.h