Skip to content

target: Fixes for COMPARE_AND_WRITE backend I/O failure cases

Nicholas A. Bellinger linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target: Reset data_length for COMPARE_AND_WRITE to NoLB * block_sizedrivers/target/target_core_sbc.c+6 -00 replies
2/3target: Fix recursive COMPARE_AND_WRITE callback failuredrivers/target/target_core_sbc.c+10 -10 replies
3/3target: Fail on non zero scsi_status in compare_and_write_callbackdrivers/target/target_core_sbc.c+10 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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