Searched hist:"6961 cd4d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/um/drivers/ |
H A D | ubd_kern.c | 6961cd4d Wed Nov 07 15:34:05 CST 2018 Jens Axboe <axboe@kernel.dk> ubd: fix missing lock around request issue
We need to hold the device lock (and disable interrupts) while writing new commands, or we could be interrupted while that is happening and read invalid requests in the completion path.
Fixes: 4e6da0fe8058 ("um: Convert ubd driver to blk-mq") Tested-by: Richard Weinberger <richard@nod.at> Signed-off-by: Jens Axboe <axboe@kernel.dk> 6961cd4d Wed Nov 07 15:34:05 CST 2018 Jens Axboe <axboe@kernel.dk> ubd: fix missing lock around request issue We need to hold the device lock (and disable interrupts) while writing new commands, or we could be interrupted while that is happening and read invalid requests in the completion path. Fixes: 4e6da0fe8058 ("um: Convert ubd driver to blk-mq") Tested-by: Richard Weinberger <richard@nod.at> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|