diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 2903fd37a068..30d6f84b6636 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -633,7 +633,7 @@ extattr_list_vp(struct vnode *vp, int attrnamespace, void *data, if (nbytes > IOSIZE_MAX) return (EINVAL); - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); + vn_lock(vp, LK_SHARED | LK_RETRY); auiop = NULL; sizep = NULL;