From: Andi Kleen <andi@firstfloor.org>
To: Douglas Gilbert <dougg@torque.net>
Cc: Andi Kleen <andi@firstfloor.org>,
James.Bottomley@HansenPartnership.com,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] Don't use unnecessary GFP_ATOMIC in sg.c v2
Date: Mon, 25 Feb 2008 15:33:24 +0100 [thread overview]
Message-ID: <20080225143324.GA15836@one.firstfloor.org> (raw)
In-Reply-To: <47C2C0C0.4010801@torque.net>
> Oh no, not again. This isn't the first time kernel folks
> have tried to demote the sg driver's GFP_ATOMIC to GFP_KERNEL.
That is because it is abusing GFP_ATOMIC.
> In the past it has ended in grief. The driver was written
> to attempt _fast_ allocation and if that failed then:
You want it to not swap? Then __GFP_NOIO would be correct.
> - lessen the requested allocation (e.g. smaller elements
> but more of them in a scatter gather list), or
What is when the allocation is already 1 page?
> - report the error back to the user (i.e. ENOMEM) assuming
> that they are knowledgeable enough to do something about it
> (e.g. do two smaller READs rather than one larger one).
But the kernel can actually do something about it, just not
when you pass it __GFP_ATOMIC.
-Andi
prev parent reply other threads:[~2008-02-25 14:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-25 9:09 [PATCH] Don't use unnecessary GFP_ATOMIC in sg.c v2 Andi Kleen
2008-02-25 13:21 ` Douglas Gilbert
2008-02-25 14:33 ` 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=20080225143324.GA15836@one.firstfloor.org \
--to=andi@firstfloor.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=dougg@torque.net \
--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 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.