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)
commitf02b9ac35a47dff745c7637fbc095f01cc03646e
tree3615c099998adb4d8b65681acb16d9b060b1ee89
parent94eddfbeaafa3e8040a2c47d370dea0e58e76941
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