Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] target: Fixes for COMPARE_AND_WRITE backend I/O failure cases
@ 2013-10-02  0:13 Nicholas A. Bellinger
  2013-10-02  0:13 ` [PATCH 1/3] target: Reset data_length for COMPARE_AND_WRITE to NoLB * block_size Nicholas A. Bellinger
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Nicholas A. Bellinger @ 2013-10-02  0:13 UTC (permalink / raw)
  To: target-devel; +Cc: linux-scsi, Thomas Glanzmann, Nicholas Bellinger

From: Nicholas Bellinger <nab@linux-iscsi.org>

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(-)

-- 
1.8.4.rc3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-10-03 12:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02  0:13 [PATCH 0/3] target: Fixes for COMPARE_AND_WRITE backend I/O failure cases Nicholas A. Bellinger
2013-10-02  0:13 ` [PATCH 1/3] target: Reset data_length for COMPARE_AND_WRITE to NoLB * block_size Nicholas A. Bellinger
2013-10-02  0:13 ` [PATCH 2/3] target: Fix recursive COMPARE_AND_WRITE callback failure Nicholas A. Bellinger
2013-10-02  0:13 ` [PATCH 3/3] target: Fail on non zero scsi_status in compare_and_write_callback Nicholas A. Bellinger
2013-10-02  4:31 ` [PATCH 0/3] target: Fixes for COMPARE_AND_WRITE backend I/O failure cases Thomas Glanzmann
2013-10-02  5:17   ` Nicholas A. Bellinger
2013-10-03 11:38     ` Thomas Glanzmann
2013-10-03 12:14       ` Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox