[SCSI] bnx2i: Modified the bnx2i stop path to compensate for in progress ops
authorEddie Wai <eddie.wai@broadcom.com>
Tue, 23 Nov 2010 23:29:28 +0000 (15:29 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:14 +0000 (12:24 -0600)
commit842158d7b7bc3b1a49c31f43ac20414234c33a8d
tree8cb1ba191f2808d9f22a08262bd1589f4f9cc3b3
parent016ef69076f3e8f9e42f31152157f46812d25566
[SCSI] bnx2i: Modified the bnx2i stop path to compensate for in progress ops

The stop path has been augmented to wait a max of 10s for all in
progress offload and destroy activities to complete before proceeding
to terminate all active connections (via iscsid or forcefully).

Note that any new offload and destroy requests are now blocked and
return to the caller immediately.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Acked-by: Anil Veerabhadrappa <anilgv@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bnx2i/bnx2i_init.c
drivers/scsi/bnx2i/bnx2i_iscsi.c