Skip to content
Commit bd171930 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.1: Fix a race in nfs4_proc_layoutget



If the task calling layoutget is signalled, then it is possible for the
calls to nfs4_sequence_free_slot() and nfs4_layoutget_prepare() to race,
in which case we leak a slot.
The fix is to move the call to nfs4_sequence_free_slot() into the
nfs4_layoutget_release() so that it gets called at task teardown time.

Fixes: 2e80dbe7 ("NFSv4.1: Close callback races for OPEN, LAYOUTGET...")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 898fc11b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment