engines/sg: ensure we flag EIO on the right io_u
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 17:07:38 +0000 (10:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 17:08:08 +0000 (10:08 -0700)
commit7508b3948a216106196cec33a3a707d6f32d84a8
tree364bdf38bfdd7708d840259e2e7d3d00b7d69ed5
parenta999bc49d7aadbd9b3ab07c2f43433fc90bbe582
engines/sg: ensure we flag EIO on the right io_u

For sync complete, set it on the io_u that corresponds to the hdr
we just read.

Fixes: a999bc49d7aa ("engines/sg: ensure we complete the right command for sync IO")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/sg.c