summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/bge
diff options
context:
space:
mode:
authorbouyer <bouyer@NetBSD.org>2006-11-14 22:14:56 +0000
committerbouyer <bouyer@NetBSD.org>2006-11-14 22:14:56 +0000
commit70aa8a0541d3cc7abbb20b3bc4589a11b1e93538 (patch)
treef950eccf7a47b37d5c1a11de4b1572bc6c1a4aa7 /sys/dev/microcode/bge
parent83293ad7529607b8835aa3dc9bdbfcc5b2e68bf2 (diff)
vn_lock() the vnode we got from bdevvp(), otherwise if something else uses
this device in userland (e.g. qemu-dm when running a HVM guest), we'll reuse the existing vnode and we'll panic in VOP_UNLOCK(). We don't have this issue most of the time because when xbdback is the only user, we get a specfs vnode for which locking operation are NOPs. Thanks to Antti Kantee for spotting the missing vn_lock() in sources and giving details about vnode locking.
Diffstat (limited to 'sys/dev/microcode/bge')
0 files changed, 0 insertions, 0 deletions