public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Igor Zhbanov <izh1979@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Can kmalloc( ) with __GFP_WAIT flag fail?
Date: Fri, 05 Jun 2009 13:06:10 +0200	[thread overview]
Message-ID: <871vpz6iu5.fsf@basil.nowhere.org> (raw)
In-Reply-To: <f44001920906050359h5edc6782n69aa91472aae418f@mail.gmail.com> (Igor Zhbanov's message of "Fri, 5 Jun 2009 14:59:31 +0400")

Igor Zhbanov <izh1979@gmail.com> writes:

> Hello!
>
> Can kmalloc( ) fail when invoked with __GFP_WAIT flag (which is
> implied by GFP_KERNEL)?

Yes it can fail.

> And for what reason it may fail?

When the kernel is out of memory.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.

      reply	other threads:[~2009-06-05 11:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 10:59 Can kmalloc( ) with __GFP_WAIT flag fail? Igor Zhbanov
2009-06-05 11:06 ` Andi Kleen [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=871vpz6iu5.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=izh1979@gmail.com \
    --cc=linux-kernel@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