2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/drivers/scsi/bnx2i
Eddie Wai b5cf6b63f7 [SCSI] bnx2i: Added the use of kthreads to handle SCSI cmd completion
This patch breaks the SCSI cmd completion into two parts:
1. The bh will allocate and queued work to the cmd specific CPU IO
completion kthread.  The CPU for the cmd is from the sc->request->cpu.

2. The CPU specific IO completion kthread will call the scsi_cmd_resp
routine to do the actual cmd completion.

In the normal case, these IO completion kthreads should complete before
the blk IO times out at 60s.  However, in the case when these kthreads
are blocked for whatever reason and exceeded the timeout, the call
to conn_destroy will have to iterate and exhaust all related work in the
percpu work list for all online CPUs.  This will guarantee the protection
of the work->session and conn pointers before they get freed.

Also modified the event coalescing formula to have at least the
event_coal_min outstanding cmds in the pipeline so the SCSI producer
would not get underrun.

Also changed the following SCSI parameters:
- can_queue from 1024 to 2048
- cmds_per_lun from 24 to 128

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Acked-by: Benjamin Li <benli@broadcom.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-06-29 16:48:23 -05:00
..
57xx_iscsi_constants.h [SCSI] bnx2i: Updated copyright and maintainer info 2010-12-21 12:24:15 -06:00
57xx_iscsi_hsi.h [SCSI] bnx2i: Updated copyright and maintainer info 2010-12-21 12:24:15 -06:00
bnx2i_hwi.c [SCSI] bnx2i: Added the use of kthreads to handle SCSI cmd completion 2011-06-29 16:48:23 -05:00
bnx2i_init.c [SCSI] bnx2i: Added the use of kthreads to handle SCSI cmd completion 2011-06-29 16:48:23 -05:00
bnx2i_iscsi.c [SCSI] bnx2i: Added the use of kthreads to handle SCSI cmd completion 2011-06-29 16:48:23 -05:00
bnx2i_sysfs.c [SCSI] bnx2i: Updated copyright and maintainer info 2010-12-21 12:24:15 -06:00
bnx2i.h [SCSI] bnx2i: Added the use of kthreads to handle SCSI cmd completion 2011-06-29 16:48:23 -05:00
Kconfig scsi: fix bnx2i build errors 2010-08-11 08:59:01 -07:00
Makefile [SCSI] bnx2i: Add bnx2i iSCSI driver. 2009-06-09 10:22:45 -05:00