NFS: Don't hold the group lock when calling nfs_release_request()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 9 Sep 2017 19:31:28 +0000 (15:31 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 9 Sep 2017 19:36:40 +0000 (15:36 -0400)
commit8b77484f2b3d8f1096a2231d513fc589e4857a73
treee3da966ad54bc63f5a62d1ded3e17603395e7b0e
parent5d2a9d9dac902f438daa1334540398aec6c8dcfa
NFS: Don't hold the group lock when calling nfs_release_request()

That can deadlock if this is the last reference since
nfs_page_group_destroy() calls nfs_page_group_sync_on_bit().
Note that even if the page was removed from the subpage list,
the req->wb_head could still be pointing to the old head.

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