mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
[SCSI] iscsi_tcp regression: remove bogus warn on in write path
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 <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
b0483e78e5
commit
fee099b278
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user