NFS: Wait for requests that are locked on the commit list
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 1 Aug 2017 21:29:29 +0000 (17:29 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 15 Aug 2017 15:54:48 +0000 (11:54 -0400)
commit2ce209c42c01ca976ad680fea52a8e8b9a53643b
tree1728cf3caf2430e3a4cd944228b31f084f577115
parent8205b9ce030288e104a3024344f2a0a086231e36
NFS: Wait for requests that are locked on the commit list

If a request is on the commit list, but is locked, we will currently skip
it, which can lead to livelocking when the commit count doesn't reduce
to zero.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c
fs/nfs/pnfs_nfs.c
fs/nfs/write.c