Skip to content

Commit

Permalink
[SCSI] iscsi: fix writepsace race
Browse files Browse the repository at this point in the history
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 <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Mike Christie authored and James Bottomley committed Jun 5, 2006
1 parent 040515f commit 3219e52
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 95 deletions.
Loading

0 comments on commit 3219e52

Please sign in to comment.