Skip to content

target: improve Data-Out and NOP timeout error reporting

David Disseldorp target-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- split out and use a helper function for cxn timeout error stashing
- add I_T Nexus to error messages

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target: use ISCSI_IQN_LEN in iscsi_target_statdrivers/target/iscsi/iscsi_target_stat.c include/target/iscsi/iscsi_target_core.h include/target/iscsi/iscsi_target_stat.h+7 -70 replies
2/5target: log Data-Out timeouts as errorsdrivers/target/iscsi/iscsi_target_erl1.c+11 -50 replies
3/5target: log NOP ping timeouts as errorsdrivers/target/iscsi/iscsi_target_util.c+5 -30 replies
4/5target: split out helper for cxn timeout error stashingdrivers/target/iscsi/iscsi_target_erl0.c drivers/target/iscsi/iscsi_target_util.c drivers/target/iscsi/iscsi_target_util.h+20 -282 replies
5/5target: stash sess_err_stats on Data-Out timeoutdrivers/target/iscsi/iscsi_target_erl1.c+1 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] target: improve Data-Out and NOP timeout error reporting

The following patchset converts existing Data-Out and NOP ping timeout messages from pr_debug() to pr_error(), to reflect the seriousness of unexpected connection termination events.

These events can be triggered using a couple of libiscsi client hacks:
https://github.com/ddiss/libiscsi/tree/hack-lio-trigger-dataout-timeout
https://github.com/ddiss/libiscsi/tree/hack-lio-trigger-nop-timeout

Cheers, David
---
Changes since v1
- split out and use a helper function for cxn timeout error stashing
- add I_T Nexus to error messages

 drivers/target/iscsi/iscsi_target_erl0.c | 15 +--------------
 drivers/target/iscsi/iscsi_target_erl1.c | 17 ++++++++++++-----
 drivers/target/iscsi/iscsi_target_stat.c |  4 ++--
 drivers/target/iscsi/iscsi_target_util.c | 43 ++++++++++++++++++++++++-------------------
 drivers/target/iscsi/iscsi_target_util.h |  1 +
 include/target/iscsi/iscsi_target_core.h |  6 +++---
 include/target/iscsi/iscsi_target_stat.h |  4 ++--
 7 files changed, 45 insertions(+), 45 deletions(-)