Trond Myklebust fbf4bcc9a8 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: fc51b1cf391d ("NFS: Beware when dereferencing the delegation cred")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
2020-04-13 15:55:21 -04:00
..
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2020-04-07 13:51:39 -07:00
2019-02-20 15:14:21 -05:00
2020-02-03 10:43:06 -05:00
2015-04-23 15:16:14 -04:00
2020-04-07 13:51:39 -07:00
2020-02-04 11:01:54 -05:00
2019-10-09 12:05:49 -04:00
2020-04-11 11:42:35 -04:00
2020-04-07 13:51:39 -07:00