From: Mike Christie <michaelc@cs.wisc.edu>
To: James Bottomley <James.Bottomley@suse.de>
Cc: Jayamohan Kalickal <jayamohank@serverengines.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH 2/2] be2iscsi: Moving to pci_pools v3
Date: Mon, 28 Sep 2009 13:44:12 -0500 [thread overview]
Message-ID: <4AC103FC.2040701@cs.wisc.edu> (raw)
In-Reply-To: <1253982622.27401.25.camel@mulgrave.site>
On 09/26/2009 11:30 AM, James Bottomley wrote:
> On Wed, 2009-09-23 at 12:04 -0500, Mike Christie wrote:
>> On 09/21/2009 09:52 PM, Jayamohan Kallickal wrote:
>>> This patch contains changes to use pci_pools for iscsi hdr
>>> instead of pci_alloc_consistent. Here we alloc and free to pool
>>> for every IO
>>>
>>> v3:
>>> - Remove cleanup loop in beiscsi_session_destroy
>>> - Fixup for allocation failure handling in beiscsi_alloc_pdu
>>> - Removed unused variable in beiscsi_session_destroy.
>>>
>>> Signed-off-by: Jayamohan Kallickal<jayamohank@serverengines.com>
>> Thanks for fixing those issues.
>>
>> Reviewed-by: Mike Christie<michaelc@cs.wisc.edu>
>
> Actually, this isn't building correctly for me in my 32 bit environment:
>
> drivers/scsi/be2iscsi/be_main.c: In function ‘beiscsi_alloc_pdu’:
> drivers/scsi/be2iscsi/be_main.c:2885: warning: passing argument 3 of
> ‘dma_pool_alloc’ from incompatible pointer type
>
> The problem is this unsigned long long definition of a64: dma_addr_t is
> only a long (32 bits) on this platform.
>
> This patch fixes the problem for me ... I'll just fold it in if
> everyone's OK with it.
>
> James
>
> ---
>
> diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
> index 4299a46..4f1aca3 100644
> --- a/drivers/scsi/be2iscsi/be_main.c
> +++ b/drivers/scsi/be2iscsi/be_main.c
> @@ -2881,13 +2881,15 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
> struct hwi_controller *phwi_ctrlr;
> itt_t itt;
> struct beiscsi_session *beiscsi_sess = beiscsi_conn->beiscsi_sess;
> + dma_addr_t paddr;
>
> io_task->cmd_bhs = pci_pool_alloc(beiscsi_sess->bhs_pool,
> - GFP_KERNEL,
> - &io_task->bhs_pa.u.a64.address);
> + GFP_KERNEL,&paddr);
> +
> if (!io_task->cmd_bhs)
> return -ENOMEM;
>
> + io_task->bhs_pa.u.a64.address = paddr;
> io_task->pwrb_handle = alloc_wrb_handle(phba,
> beiscsi_conn->beiscsi_conn_cid,
> task->itt);
>
>
Looks ok to me.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-09-28 18:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-22 2:52 [PATCH 2/2] be2iscsi: Moving to pci_pools v3 Jayamohan Kallickal
2009-09-23 17:04 ` Mike Christie
2009-09-26 16:30 ` James Bottomley
2009-09-28 18:44 ` Mike Christie [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-09-29 17:37 Jayamohan Kalickal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AC103FC.2040701@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=James.Bottomley@suse.de \
--cc=jayamohank@serverengines.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).