]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-blk: virtqueue_kick() must be ordered with other virtqueue operations
authorShaohua Li <shli@fusionio.com>
Wed, 20 Nov 2013 01:57:24 +0000 (18:57 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Nov 2013 02:00:45 +0000 (19:00 -0700)
commit6194ce6af02f59cee5ff04070ad856e43c2f7f97
tree3615c099998adb4d8b65681acb16d9b060b1ee89
parent1686d37a7ff2c649fc711f7de6d48106268afb35
virtio-blk: virtqueue_kick() must be ordered with other virtqueue operations

It isn't safe to call it without holding the vblk->vq_lock.

Reported-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Shaohua Li <shli@fusionio.com>
Fixed another condition of virtqueue_kick() not holding the lock.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/virtio_blk.c