From: Mike Christie Date: Tue, 30 May 2006 05:37:28 +0000 (-0500) Subject: [SCSI] iscsi: fix writepsace race X-Git-Tag: v2.6.18-rc1~1092^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3219e5294150aee7d389e19029f49b44fb6b5c9f;p=pandora-kernel.git [SCSI] iscsi: fix writepsace race We can race and misset the suspend bit if iscsi_write_space is called then iscsi_send returns with a failure indicating there is no space. To handle this this patch returns a error upwards allowing xmitworker to decide if we need to try and transmit again. For the no write space case xmitworker will not retry, and instead let iscsi_write_space queue it back up if needed (this relies on the work queue code to properly requeue us if needed). Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed