block: fix req_bio_endio append error handling
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 22 Oct 2021 15:01:44 +0000 (16:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 22 Oct 2021 15:12:37 +0000 (09:12 -0600)
commit297db731847e7808881ec2123c7564067d594d39
tree12c2b8d2a66d27482c1845d506ab5745844b38fa
parent8e9f666a6e66d3f882c094646d35536d2759103a
block: fix req_bio_endio append error handling

Shinichiro Kawasaki reports that there is a bug in a recent
req_bio_endio() patch causing problems with zonefs. As Shinichiro
suggested, inverse the condition in zone append path to resemble how it
was before: fail when it's not fully completed.

Fixes: 478eb72b815f3 ("block: optimise req_bio_endio()")
Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/344ea4e334aace9148b41af5f2426da38c8aa65a.1634914228.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c