]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4cf81e8f6e66e7aa12f3f546614091ec3a87231e
treeb4bf02475161d17d7e7335d801c69e9947ec92b7
parent6e993ed26d9bc6b84ab942771a03faa03053f5ec
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