vfs: do an unlocked check before iterating the lazy list
For most filesystems it is expected to be empty most of the time.
This commit is contained in:
parent
cd0e46c66b
commit
1513f80391
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357136
@ -6368,6 +6368,9 @@ __mnt_vnode_first_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb,
|
||||
{
|
||||
struct vnode *vp;
|
||||
|
||||
if (TAILQ_EMPTY(&mp->mnt_lazyvnodelist))
|
||||
return (NULL);
|
||||
|
||||
*mvp = vn_alloc_marker(mp);
|
||||
MNT_ILOCK(mp);
|
||||
MNT_REF(mp);
|
||||
|
Loading…
Reference in New Issue
Block a user