From: Paul Durrant <Paul.Durrant@citrix.com>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Wei Liu <wei.liu2@citrix.com>, Anoob Soman <anoob.soman@citrix.com>
Subject: Re: [PATCH net] xen-netback: Use GFP_ATOMIC to allocate hash
Date: Thu, 2 Mar 2017 10:51:52 +0000 [thread overview]
Message-ID: <92c0d11454744be4879fd3f4870480be@AMSPEX02CL03.citrite.net> (raw)
In-Reply-To: <1488451820-4759-1-git-send-email-anoob.soman@citrix.com>
> -----Original Message-----
> From: Anoob Soman [mailto:anoob.soman@citrix.com]
> Sent: 02 March 2017 10:50
> To: netdev@vger.kernel.org; xen-devel@lists.xenproject.org
> Cc: Paul Durrant <Paul.Durrant@citrix.com>; Wei Liu <wei.liu2@citrix.com>;
> Anoob Soman <anoob.soman@citrix.com>
> Subject: [PATCH net] xen-netback: Use GFP_ATOMIC to allocate hash
>
> Allocation of new_hash, inside xenvif_new_hash(), always happen
> in softirq context, so use GFP_ATOMIC instead of GFP_KERNEL for new
> hash allocation.
>
> Signed-off-by: Anoob Soman <anoob.soman@citrix.com>
Acked-by: Paul Durrant <paul.durrant@citrix.com>
> ---
> drivers/net/xen-netback/hash.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/xen-netback/hash.c b/drivers/net/xen-
> netback/hash.c
> index e8c5ddd..3c4c58b 100644
> --- a/drivers/net/xen-netback/hash.c
> +++ b/drivers/net/xen-netback/hash.c
> @@ -39,7 +39,7 @@ static void xenvif_add_hash(struct xenvif *vif, const u8
> *tag,
> unsigned long flags;
> bool found;
>
> - new = kmalloc(sizeof(*entry), GFP_KERNEL);
> + new = kmalloc(sizeof(*entry), GFP_ATOMIC);
> if (!new)
> return;
>
> --
> 2.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-03-02 10:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 10:50 [PATCH net] xen-netback: Use GFP_ATOMIC to allocate hash Anoob Soman
2017-03-02 10:51 ` Paul Durrant [this message]
2017-03-02 10:52 ` Wei Liu
2017-03-02 22:43 ` David Miller
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=92c0d11454744be4879fd3f4870480be@AMSPEX02CL03.citrite.net \
--to=paul.durrant@citrix.com \
--cc=anoob.soman@citrix.com \
--cc=netdev@vger.kernel.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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).