public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] scsi: target: iblock: Report space allocation errors
@ 2023-05-17 14:15 Konstantin Shelekhin
  2023-05-17 14:15 ` [PATCH 1/2] scsi: target: core: Add sense reason for " Konstantin Shelekhin
  2023-05-17 14:15 ` [PATCH 2/2] scsi: target: iblock: Report " Konstantin Shelekhin
  0 siblings, 2 replies; 13+ messages in thread
From: Konstantin Shelekhin @ 2023-05-17 14:15 UTC (permalink / raw)
  To: Martin Petersen; +Cc: target-devel, linux-scsi, linux, Konstantin Shelekhin

Currently iblock terminates failed requests with TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE
regardless of the reason. It makes it impossible to distinguish the lack
of free LBA from a hardware failure on thin provisioned devices without
analyzing target logs. This series teaches iblock to report the
appropriate sense reason according to the failed bio's status.

Konstantin Shelekhin (2):
  scsi: target: core: Add sense reason for space allocation errors
  scsi: target: iblock: Report space allocation errors

 drivers/target/target_core_iblock.c    | 28 +++++++++++++++++++-------
 drivers/target/target_core_iblock.h    |  2 +-
 drivers/target/target_core_transport.c |  6 ++++++
 include/target/target_core_base.h      |  1 +
 4 files changed, 29 insertions(+), 8 deletions(-)

-- 
2.40.1



^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/2] scsi: target: iblock: Report space allocation errors
@ 2021-10-20 18:43 Konstantin Shelekhin
  2021-10-20 18:43 ` [PATCH 2/2] " Konstantin Shelekhin
  0 siblings, 1 reply; 13+ messages in thread
From: Konstantin Shelekhin @ 2021-10-20 18:43 UTC (permalink / raw)
  To: Martin Petersen, Mike Christie, target-devel
  Cc: linux-scsi, linux, Konstantin Shelekhin

Currently iblock terminates failed requests with TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE
regardless of the reason. It makes it impossible to distinguish the lack of
free LBA from a hardware failure on thin provisioned devices without analyzing
target logs. This series teaches iblock to report the appropriate sense reason
according to the failed bio's status.

Konstantin Shelekhin (2):
  scsi: target: core: Add sense reason for space allocation errors
  scsi: target: iblock: Report space allocation errors

 drivers/target/target_core_iblock.c    | 24 ++++++++++++++++++++----
 drivers/target/target_core_iblock.h    |  2 +-
 drivers/target/target_core_transport.c |  6 ++++++
 include/target/target_core_base.h      |  1 +
 4 files changed, 28 insertions(+), 5 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2023-05-27 19:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-17 14:15 [PATCH 0/2] scsi: target: iblock: Report space allocation errors Konstantin Shelekhin
2023-05-17 14:15 ` [PATCH 1/2] scsi: target: core: Add sense reason for " Konstantin Shelekhin
2023-05-17 14:15 ` [PATCH 2/2] scsi: target: iblock: Report " Konstantin Shelekhin
2023-05-19 18:05   ` kernel test robot
2023-05-20 18:05   ` Mike Christie
2023-05-21 18:28     ` Konstantin Shelekhin
2023-05-27 19:50   ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-10-20 18:43 [PATCH 0/2] " Konstantin Shelekhin
2021-10-20 18:43 ` [PATCH 2/2] " Konstantin Shelekhin
2021-10-22  5:27   ` kernel test robot
2021-11-08  9:59   ` kernel test robot
2021-11-23 13:29   ` kernel test robot
2021-11-25  2:36   ` kernel test robot
2021-11-25  7:26   ` kernel test robot

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