]> git.baikalelectronics.ru Git - kernel.git/commit
ubd: fix missing initialization of io_req
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Thu, 8 Nov 2018 13:07:23 +0000 (13:07 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 13:16:09 +0000 (06:16 -0700)
commit6beba97910273e77693adab5aea9bb23c4a90da4
treeaedd22c50839066987f771bd1ad09cb9c7e8f10e
parentfdbfce1ba51add74c46be869b3826f05997a0ffc
ubd: fix missing initialization of io_req

The SYNC path doesn't initialize io_req->error, which can cause
random errors. Before the conversion to blk-mq, we always
completed requests with BLK_STS_OK status, but now we actually
look at the error field and this issue becomes apparent.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
[axboe: fixed up commit message to explain what is actually going on]

Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/um/drivers/ubd_kern.c