[SCSI] cxgb3i: fix cpu use abuse during writes
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 21 Apr 2009 20:32:34 +0000 (15:32 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 27 Apr 2009 15:10:06 +0000 (10:10 -0500)
commit1393109f23f8ad753a60a3e461c6caa96d8524f3
treebc9400d252da0470d0ae9fb210f9afbd5479764d
parentdd0af9f94e54efb13ee050ebac11909215ef02c2
[SCSI] cxgb3i: fix cpu use abuse during writes

When doing a lot (128) of large writes (256K) we can hit the cxgb3_snd_win
check pretty easily. The driver's xmit thread then takes 100% of the cpu.

The driver should not be returning -EAGAIN for this problem. It should
be returing -ENOBUFS, then when the window is opened again it should
queue the xmit thread (it already wakes the xmit thread).

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/cxgb3i/cxgb3i_offload.c
drivers/scsi/cxgb3i/cxgb3i_pdu.c