iscsi_tcp regression: remove bogus warn on in write path
PATCH 1/1 iscsi_tcp regression: remove bogus warn on in write path
From: Mike Christie <[email protected]>
An empty r2tqueue is a valid state. It just means that we have processed all that there was to do. This patch removes the WARN_ON that was added when the kfifo changes were merged.
Signed-off-by Mike Christie <[email protected]>
--- drivers/scsi/libiscsi_tcp.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
drivers/scsi/libiscsi_tcp.c +3 -5
@@ -992,12 +992,10 @@ static struct iscsi_r2t_info *iscsi_tcp_get_curr_r2t(struct iscsi_task *task)if (r2t ==NULL ) {if (kfifo_out (&tcp_task->r2tqueue, (void *)&tcp_task->r2t,sizeof (void *)) != -sizeof (void *)) { -WARN_ONCE (1 ,"unexpected fifo state" ); +sizeof (void *)) r2t =NULL ; - } - - r2t = tcp_task->r2t; +else + r2t = tcp_task->r2t; }spin_unlock_bh (&session->lock); }
Signature · 1 line
1.6.5.2