diff options
author | stas <stas@FreeBSD.org> | 2009-06-28 21:49:43 +0000 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2009-06-28 21:49:43 +0000 |
commit | c61e1d6988484a6875f72fcc81e34d5a1c2dccfa (patch) | |
tree | 022e59bcdde11f99bd112a6b3f3fb767e6be937c /sys/sys/mount.h | |
parent | 66973f6d466a972e501c27cd4da24634b5f87f3e (diff) | |
download | FreeBSD-src-c61e1d6988484a6875f72fcc81e34d5a1c2dccfa.zip FreeBSD-src-c61e1d6988484a6875f72fcc81e34d5a1c2dccfa.tar.gz |
- Turn the third (islocked) argument of the knote call into flags parameter.
Introduce the new flag KNF_NOKQLOCK to allow event callers to be called
without KQ_LOCK mtx held.
- Modify VFS knote calls to always use KNF_NOKQLOCK flag. This is required
for ZFS as its getattr implementation may sleep.
Approved by: re (rwatson)
Reviewed by: kib
MFC after: 2 weeks
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r-- | sys/sys/mount.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 781d2b7..dbf8c20 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -657,7 +657,7 @@ vfs_statfs_t __vfs_statfs; #define VFS_KNOTE_LOCKED(vp, hint) do \ { \ if (((vp)->v_vflag & VV_NOKNOTE) == 0) \ - VN_KNOTE((vp), (hint), 1); \ + VN_KNOTE((vp), (hint), KNF_LISTLOCKED); \ } while (0) #define VFS_KNOTE_UNLOCKED(vp, hint) do \ |