diff options
| author | bouyer <bouyer@NetBSD.org> | 2006-11-14 22:14:56 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2006-11-14 22:14:56 +0000 |
| commit | 70aa8a0541d3cc7abbb20b3bc4589a11b1e93538 (patch) | |
| tree | f950eccf7a47b37d5c1a11de4b1572bc6c1a4aa7 /sys/dev/microcode/isp/isp_2200.bin | |
| parent | 83293ad7529607b8835aa3dc9bdbfcc5b2e68bf2 (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/isp/isp_2200.bin')
0 files changed, 0 insertions, 0 deletions
