All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akio Takebe <takebe_akio@jp.fujitsu.com>
To: Jan Beulich <jbeulich@novell.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [Patch] linux: avoid kmalloc while disabling	 interrupts
Date: Tue, 09 Sep 2008 17:35:28 +0900	[thread overview]
Message-ID: <48C63550.2090704@jp.fujitsu.com> (raw)
In-Reply-To: <48C64E76.76E4.0078.0@novell.com>

Jan Beulich wrote:
>>>> Akio Takebe <takebe_akio@jp.fujitsu.com> 09.09.08 09:41 >>>
>> We should avoid using kmalloc while interrupts is disabled.
>> kmalloc may sleep.
>>
>> Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
> 
> I was under the impression that this is why the code uses GFP_ATOMIC.
> 
> Also, doesn't that patch introduce new problems, in dropping the lock
> intermediately and then adding entries to lists without checking for
> already existing entries again? I'd suppose if you want the allocations
> to be done outside of the lock, you should do them in advance
> (regardless of whether you'll actually need them) and free the memory
> after dropping the lock if the entries weren't really inserted anywhere.
> 
Sorry for my confusion.
As you said, it's my mistake.

Best Regards,

Akio Takebe

      reply	other threads:[~2008-09-09  8:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09  7:41 [Patch] linux: avoid kmalloc while disabling interrupts Akio Takebe
2008-09-09  8:19 ` Akio Takebe
2008-09-09  8:22 ` Jan Beulich
2008-09-09  8:35   ` Akio Takebe [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=48C63550.2090704@jp.fujitsu.com \
    --to=takebe_akio@jp.fujitsu.com \
    --cc=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /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.