Skip to content
Snippets Groups Projects
Commit fbf4bcc9 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix an ABBA spinlock issue in pnfs_update_layout()


We need to drop the inode spinlock while calling nfs4_select_rw_stateid(),
since nfs4_copy_delegation_stateid() could take the delegation lock.
Note that it is safe to do this, since all other calls to
pnfs_update_layout() for that inode will find themselves blocked by
the lock we hold on NFS_LAYOUT_FIRST_LAYOUTGET.

Fixes: fc51b1cf ("NFS: Beware when dereferencing the delegation cred")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 8f3d9f35
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment