Skip to content
Commit 0033dfd9 authored by Anton Ivanov's avatar Anton Ivanov Committed by Jens Axboe
Browse files

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: default avatarAnton Ivanov <anton.ivanov@cambridgegreys.com>

[axboe: fixed up commit message to explain what is actually going on]

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f3587d76
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment