]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix deadlocks in nfs_scan_commit_list()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Oct 2021 19:44:16 +0000 (15:44 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Oct 2021 09:05:54 +0000 (11:05 +0200)
commitbf5cf580aec0b04bf2786798946e2460655631d5
tree8a6c772d769bb023cdfb20b7a76dbe719dc1ddf5
parent812e591e08dadd457c22114d2fb84efe4e81dc64
NFS: Fix deadlocks in nfs_scan_commit_list()

Partially revert commit d15a2fed4d66 ("NFS: Wait for requests that are
locked on the commit list"), since it can lead to deadlocks between
commit requests and nfs_join_page_group().
For now we should assume that any locked requests on the commit list are
either about to be removed and committed by another task, or the writes
they describe are about to be retransmitted. In either case, we should
not need to worry.

Fixes: d15a2fed4d66 ("NFS: Wait for requests that are locked on the commit list")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/write.c