[SCSI] bnx2i: use common iscsi suspend queue
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 11 Nov 2009 22:34:30 +0000 (16:34 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:35 +0000 (12:01 -0600)
commit24246de77503978cfcd7e76f06404e60e399992f
tree2644120368d5a88e2be597fb74d1ccd2e091393c
parent627511e3e67553b04f6917c03e39b797df210e04
[SCSI] bnx2i: use common iscsi suspend queue

This just has bnx2i use the iscsi_suspend_queue helper.

The suspend works as follows:

When ep_poll has succeeed iscsid will call conn_bind, the LLD will
then call iscsi_conn_bind which will clear the suspend bit.
When ep_disconnect is called (or if there is a conn error) we set
the suspend bit. For the ep_disconnect case I  added a helper
in the previous kernel that will take the session lock to make sure
iscsi_queuecommand/xmit_task is not running and it will set
the suspend bit.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: Anil Veerabhadrappa <anilgv@broadcom.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bnx2i/bnx2i.h
drivers/scsi/bnx2i/bnx2i_iscsi.c