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 Tue, 2011-06-21 at 19:54 -0700, Mike Christie wrote:
> 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.
Noted.  I will revisit this later then.
> 
> 
> >  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
Ok, I'll make the change to use this instead of grabbing the cpu
explicitly in our driver.
> 


--
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