]> git.itanic.dy.fi Git - linux-stable/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)
commit64a93dbf25d3a1368bb58ddf0f61d0a92d7479e3
tree8a6c772d769bb023cdfb20b7a76dbe719dc1ddf5
parent110cb2d2f9326030f13b7ec85d6d482934ea5462
NFS: Fix deadlocks in nfs_scan_commit_list()

Partially revert commit 2ce209c42c01 ("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: 2ce209c42c01 ("NFS: Wait for requests that are locked on the commit list")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/write.c