target: Fixes for COMPARE_AND_WRITE backend I/O failure cases
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | target: Reset data_length for COMPARE_AND_WRITE to NoLB * block_sizedrivers/ | +6 | 0 replies | |
| 2/3 | target: Fix recursive COMPARE_AND_WRITE callback failuredrivers/ | +10 | 0 replies | |
| 3/3 | target: Fail on non zero scsi_status in compare_and_write_callbackdrivers/ | +10 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] target: Fixes for COMPARE_AND_WRITE backend I/O failure cases
From: Nicholas Bellinger <[email protected]>
Hi folks,
This series addresses a handful of COMPARE_AND_WRITE backend I/O failure handling bugs reported recently by Thomas Glanzmann.
This includes a data_length handling bug that was specific to FILEIO backends, and recursive callback bug that ended up triggered a double complete OOPs, and another compare_and_write_callback() specific check to avoid a bug with asychronous IBLOCK bio completion failures.
With these fixes in place, COMPARE_AND_WRITE emulation should now be handling all backend specific I/O failure cases correctly.
Thomas, these are all fairly obvious fixes to me, and I've been able to confirm them on my setup. Please confirm on your end, and I'll plan to push them for v3.12-rc4 by the end of the week.
Thanks!
--nab
Nicholas Bellinger (3):
target: Reset data_length for COMPARE_AND_WRITE to NoLB * block_size
target: Fix recursive COMPARE_AND_WRITE callback failure
target: Fail on non zero scsi_status in compare_and_write_callback
drivers/target/target_core_sbc.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.4.rc3