]> git.karo-electronics.de Git - linux-beck.git/commit
NFSv4.1: Fix a deadlock in layoutget
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 24 Jan 2017 03:44:12 +0000 (22:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2017 07:33:09 +0000 (08:33 +0100)
commit0a7023506112ea7c634dffe08683d5d90f52eec6
tree69e3de6b2f202cb51eada56839a14d8b77bf7b57
parent73fdda3b01cd76c6570a4146bfdc6703cfce73ee
NFSv4.1: Fix a deadlock in layoutget

commit 8ac092519ad91931c96d306c4bfae2c6587c325f upstream.

We cannot call nfs4_handle_exception() without first ensuring that the
slot has been freed. If not, we end up deadlocking with the process
waiting for recovery to complete, and recovery waiting for the slot
table to drain.

Fixes: 2e80dbe7ac51 ("NFSv4.1: Close callback races for OPEN, LAYOUTGET...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c