beiscsi: the custom_length field has been set to a wrong value.
Subsystems (2)
PATCH 1/1 beiscsi: the custom_length field has been set to a wrong value.
In the beiscsi_conn_get_stats() function, custom_length should be set to 1 to take into account the "eh_abort_cnt" field at custom[0].
--- drivers/scsi/be2iscsi/be_iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/be2iscsi/be_iscsi.c +1 -1
@@ -914,7 +914,7 @@ void beiscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, stats->r2t_pdus = conn->r2t_pdus_cnt; stats->digest_err =0 ; stats->timeout_err =0 ; - stats->custom_length =0 ; + stats->custom_length =1 ;strcpy (stats->custom[0 ].desc,"eh_abort_cnt" ); stats->custom[0 ].value = conn->eh_abort_cnt; }
Signature · 1 line
Maurizio Lombardi
Quoted 4 lines · Maurizio Lombardi
In the
beiscsi_conn_get_stats()function,custom_lengthshould be set to 1 to take into account the "eh_abort_cnt" field at custom[0].Signed-off-by Maurizio Lombardi <[email protected]>
Any chance to get a review on this one?
Quoted 24 lines
--- drivers/scsi/be2iscsi/be_iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/be2iscsi/be_iscsi.c +1
-1@@ -914,7 +914,7 @@ void beiscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, stats->r2t_pdus = conn->r2t_pdus_cnt; stats->digest_err =0 ; stats->timeout_err =0 ; - stats->custom_length =0 ; + stats->custom_length =1 ;strcpy (stats->custom[0 ].desc,"eh_abort_cnt" ); stats->custom[0 ].value = conn->eh_abort_cnt; }Signature · 6 lines
Maurizio Lombardi -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
---end quoted text---
Quoted 13 lines · Maurizio Lombardi
In the
beiscsi_conn_get_stats()function,custom_lengthshould be set to 1 to take into account the "eh_abort_cnt" field at custom[0].Signed-off-by Maurizio Lombardi <[email protected]>--- drivers/scsi/be2iscsi/be_iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/be2iscsi/be_iscsi.c +0
-0
drivers/scsi/be2iscsi/be_iscsi.c void beiscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, · line 920
Quoted 8 lines
drivers/scsi/be2iscsi/be_iscsi.c +1
-1@@ -914,7 +914,7 @@ void beiscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, stats->r2t_pdus = conn->r2t_pdus_cnt; stats->digest_err =0 ; stats->timeout_err =0 ; - stats->custom_length =0 ; + stats->custom_length =1 ;strcpy (stats->custom[0 ].desc,"eh_abort_cnt" ); stats->custom[0 ].value = conn->eh_abort_cnt; }
Oops, I just noticed that
bnx2i, be2iscsi: fix custom stats length
included this one liner change. Sorry for the stir!