cnic: Defer iscsi connection cleanup
authorMichael Chan <mchan@broadcom.com>
Wed, 13 Oct 2010 14:06:47 +0000 (14:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Oct 2010 17:45:54 +0000 (10:45 -0700)
commitfdf24086f4752aee5dfb40143c736250df017820
treeb4bf02475161d17d7e7335d801c69e9947ec92b7
parenta2c9e769dbb92336ddacba01d399ad0f509e7094
cnic: Defer iscsi connection cleanup

The bnx2x devices require a 2 second quiet time before sending the last
RAMROD command to destroy a connection.  This sleep wait adds up to a
long delay when iscsid is serially destroying maultiple connections.

Create a workqueue to perform the final connection cleanup in the
background to speed up the process.  This significantly speeds up the
process as the wait time can be done in parallel for multiple connections.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c
drivers/net/cnic.h
drivers/scsi/bnx2i/57xx_iscsi_constants.h