mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
NFSv4: Fix an Oops in nfs_do_expire_all_delegations
If the loop errors, we need to exit. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
58df095b73
commit
26c78e156b
1 changed files with 2 additions and 4 deletions
|
@ -236,7 +236,6 @@ int nfs_do_expire_all_delegations(void *ptr)
|
|||
struct nfs4_client *clp = ptr;
|
||||
struct nfs_delegation *delegation;
|
||||
struct inode *inode;
|
||||
int err = 0;
|
||||
|
||||
allow_signal(SIGKILL);
|
||||
restart:
|
||||
|
@ -250,10 +249,9 @@ int nfs_do_expire_all_delegations(void *ptr)
|
|||
if (inode == NULL)
|
||||
continue;
|
||||
spin_unlock(&clp->cl_lock);
|
||||
err = nfs_inode_return_delegation(inode);
|
||||
nfs_inode_return_delegation(inode);
|
||||
iput(inode);
|
||||
if (!err)
|
||||
goto restart;
|
||||
goto restart;
|
||||
}
|
||||
out:
|
||||
spin_unlock(&clp->cl_lock);
|
||||
|
|
Loading…
Reference in a new issue