]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Always free the session slot on error in nfs4_layoutget_handle_exception
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Jun 2018 19:58:45 +0000 (15:58 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 19 Jun 2018 12:52:27 +0000 (08:52 -0400)
commitc4343fc82e9a9b0489b18fec39f941967acafc11
tree6117410c8eb22dd08dc0edb20fbea61a14a6bc16
parentf61da81a0c6c09c42a8b99a7d3f670606d799197
pNFS: Always free the session slot on error in nfs4_layoutget_handle_exception

Right now, we can call nfs_commit_inode() while holding the session slot,
which could lead to NFSv4 deadlocks. Ensure we only keep the slot if
the server returned a layout that we have to process.

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