diff options
author | christos <christos@pkgsrc.org> | 2013-01-07 00:03:43 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 2013-01-07 00:03:43 +0000 |
commit | 87d22a2b4df38a20e0113bbff7f95ccedf9359a1 (patch) | |
tree | 42c4d113bf0e92b8fc8ba4857a771b23b59cc8d4 /filesystems/openafs-devel | |
parent | 54183dd5f2c8bfcea8ef5e9d36b5bad508c5e328 (diff) | |
download | pkgsrc-87d22a2b4df38a20e0113bbff7f95ccedf9359a1.tar.gz |
need to grab the interlock before vget.
Diffstat (limited to 'filesystems/openafs-devel')
-rw-r--r-- | filesystems/openafs-devel/patches/patch-src-afs-NBSD-osi_machdep.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/filesystems/openafs-devel/patches/patch-src-afs-NBSD-osi_machdep.h b/filesystems/openafs-devel/patches/patch-src-afs-NBSD-osi_machdep.h new file mode 100644 index 00000000000..1f8daf1f8d9 --- /dev/null +++ b/filesystems/openafs-devel/patches/patch-src-afs-NBSD-osi_machdep.h @@ -0,0 +1,13 @@ +$NetBSD: patch-src-afs-NBSD-osi_machdep.h,v 1.1 2013/01/07 00:03:43 christos Exp $ + +--- src/afs/NBSD/osi_machdep.h.orig 2012-04-22 23:40:23.000000000 -0400 ++++ src/afs/NBSD/osi_machdep.h 2013-01-06 17:12:00.000000000 -0500 +@@ -52,7 +52,7 @@ + #define v_vfsp v_mount + + /* vnode */ +-#define VN_HOLD(vp) (vget(vp, 0)) ++#define VN_HOLD(vp) (mutex_enter((vp)->v_interlock), vget((vp), 0)) + #define VN_RELE(vp) (vrele(vp)) + #define osi_vnhold(avc, r) (VN_HOLD(AFSTOV(avc))) + |