From: Wengang Wang <wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] mlx4: vmalloc for mlx4_ib_wq.wrid and mlx4_ib_srq.wrid
Date: Thu, 24 Sep 2015 14:15:34 +0800 [thread overview]
Message-ID: <56039506.8060402@oracle.com> (raw)
In-Reply-To: <56038B25.1010901-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Hi Or,
在 2015年09月24日 13:33, Or Gerlitz 写道:
> On 9/24/2015 5:10 AM, Wengang Wang wrote:
>> Use __vmalloc to allocate memory for mlx4_ib_wq.wrid and
>> mlx4_ib_srq.wrid.
>>
>> Several hits that the kmalloc for wrid failed with the following like
>> call back stack:
>
> Using vmalloc and friends should be done with care, specifically, we'd
> like
> to go there only when needed (namely when kmalloc fails), else we can
> get into
> another set of troubles.
>
> Please use the practice introduced in commit 89dd86d "mlx4_core: Allow
> large mlx4_buddy bitmaps"
> to go the vmalloc way only when needed, note you can just call kvfree
> later, no need to branch
> when freeing things (as was fixed later in commit 914efb0 "mlx4: don't
> duplicate kvfree()")
>
> And have the patch title to be
>
> IB/mlx4: Use vmalloc for WR buffers when needed
>
> I don't think the OOM oops in the change log helps, skip it.
>
OK, will look at commit 89dd86d and try again.
thanks for so quick response.
thanks
wengang
> Or.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-09-24 6:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 2:10 [PATCH] mlx4: vmalloc for mlx4_ib_wq.wrid and mlx4_ib_srq.wrid Wengang Wang
[not found] ` <1443060654-10402-1-git-send-email-wen.gang.wang-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-09-24 5:33 ` Or Gerlitz
[not found] ` <56038B25.1010901-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-09-24 6:15 ` Wengang Wang [this message]
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=56039506.8060402@oracle.com \
--to=wen.gang.wang-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.