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@fb.com>
Mon, 30 Mar 2015 18:54:39 +0000 (12:54 -0600)
commit513eed500183aee1bfe99e0e670d70c0ff38e1fd
tree939a5ecd57a8fd9d96aeca2b2e6de61b2a1f4d9f
parent3cf06624c31d84c47f81b2ede5529ea2f8b78591
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