Commit 55251fb
block: Do not force full zone append completion in req_bio_endio()
This reverts commit 748dc0b.
Partial zone append completions cannot be supported as there is no
guarantees that the fragmented data will be written sequentially in the
same manner as with a full command. Commit 748dc0b ("block: fix
partial zone append completion handling in req_bio_endio()") changed
req_bio_endio() to always advance a partially failed BIO by its full
length, but this can lead to incorrect accounting. So revert this
change and let low level device drivers handle this case by always
failing completely zone append operations. With this revert, users will
still see an IO error for a partially completed zone append BIO.
Fixes: 748dc0b ("block: fix partial zone append completion handling in req_bio_endio()")
Cc: [email protected]
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 038105a commit 55251fb
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | 773 | | |
777 | | - | |
| 774 | + | |
778 | 775 | | |
779 | | - | |
780 | | - | |
| 776 | + | |
781 | 777 | | |
782 | | - | |
783 | 778 | | |
784 | 779 | | |
785 | 780 | | |
| |||
0 commit comments