Re: [PATCH 1/4] BNX2I: Added the use of kthreads to handle SCSI cmd completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/21/2011 11:49 AM, Eddie Wai wrote:
> 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 recorded in task_xmit.
> 
> 2. The CPU specific IO completion kthread will call the scsi_cmd_resp
> routine to do the actual cmd completion.


I think you should use blkio poll. Modify it so it does what you want.
But I think since other drivers are getting in without converting then
that can wait.


>  struct bnx2i_cmd {
>  	struct iscsi_hdr hdr;
> @@ -215,6 +222,7 @@ struct bnx2i_cmd {
>  	struct io_bdt io_tbl;
>  	dma_addr_t bd_tbl_dma;
>  	struct bnx2i_cmd_request req;
> +	u32 cpu;


You can just use scsi_cmnd->request->cpu
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux