summaryrefslogtreecommitdiff
path: root/fs/ecryptfs/messaging.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-06-27 17:33:38 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2017-06-27 21:44:58 -0400
commitbd171930e6a3de4f5cffdafbb944e50093dfb59b (patch)
tree4a6fba8ee37663af6c2405c631ec612c9ba4651a /fs/ecryptfs/messaging.c
parent898fc11bb2bd4fbcefb685872d9fffaba2c8edaf (diff)
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: 2e80dbe7ac51 ("NFSv4.1: Close callback races for OPEN, LAYOUTGET...") Cc: stable@vger.kernel.org # v4.8+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/ecryptfs/messaging.c')
0 files changed, 0 insertions, 0 deletions