OSDN Git Service

NFSv4: Don't remove the delegation from the super_list more than once
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 21 Oct 2019 18:12:13 +0000 (14:12 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Nov 2019 02:28:45 +0000 (21:28 -0500)
commitf9e0cc9c97906ede17ca5cd56a7b170830f4369a
treef47f96190049186f509fdd49f30468d3b5644453
parentb47e0e478c494a5e276f7d9b455b0f26bf33fc9c
NFSv4: Don't remove the delegation from the super_list more than once

Add a check to ensure that we haven't already removed the delegation
from the inode after we take all the relevant locks.

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