Home
last modified time | relevance | path

Searched hist:"70 b31c152dc49ef70bd2b34ad53ccbd9bb4116d4" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/scsi/
H A Dlibiscsi.cdiff 70b31c152dc49ef70bd2b34ad53ccbd9bb4116d4 Thu Aug 20 22:11:03 CEST 2009 Mike Christie <michaelc@cs.wisc.edu> [SCSI] libiscsi, iscsi_tcp: check suspend bit before each call to xmit_task

If we had multiple tasks on the cmd or requeue lists, and iscsi_tcp
returns a error, the write_space function can still run and queue
iscsi_data_xmit. If it was a legetimate problem and iscsi_conn_failure
was run but we raced and iscsi_data_xmit was run first it could miss
the suspend bit checks, and start trying to send data again and hit
another timeout. A similar problem is present when using cxgb3i.

This has libiscsi check the suspend bit before calling the xmit
task callout, so we at least do not try sending multiple tasks
(one could be sent).

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>