From: Jiri Kosina <jkosina@suse.cz>
To: Minchan Kim <minchan.kim@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>,
linux-kernel@vger.kernel.org, linux-mm <linux-mm@kvack.org>
Subject: Re: BUG: sleeping function called from invalid context at mm/slub.c:1717
Date: Mon, 21 Sep 2009 11:17:53 +0200 (CEST) [thread overview]
Message-ID: <alpine.LNX.2.00.0909211114400.17028@wotan.suse.de> (raw)
In-Reply-To: <28c262360909160016m19edee02g9215669f854e1026@mail.gmail.com>
On Wed, 16 Sep 2009, Minchan Kim wrote:
> We have to change description of hid_input_report.
>
> * @interrupt: called from atomic?
> I think it lost meaning.
Good point, I will change it, thanks.
> I am worried that interrupt variable is propagated down to sub
> functions. Is it right on sub functions?
Yes. This variable is not used for chosing correct allocation flags
anywhere else, it is just carrying the semantics what the HID core should
do, what callbacks to call, etc. So it's correct.
But you are right that the name and kerneldocs is confusing, and I will
fix that.
> One more thing, I am concerned about increasing GFP_ATOMIC customers
> although we can avoid it. Is it called rarely? Could you find a
> alternative method to overcome this issue?
This is just a temporary buffer for debugging output, it is freed almost
immediately later in the function, and even if the allocation fails,
nothing bad happens (just the debugging output is not delivered to the
debugfs buffer).
Thanks,
--
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2009-09-21 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090915085441.GF23126@kernel.dk>
[not found] ` <alpine.LNX.2.00.0909151202560.17028@wotan.suse.de>
2009-09-16 7:16 ` Minchan Kim
2009-09-21 9:17 ` Jiri Kosina [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=alpine.LNX.2.00.0909211114400.17028@wotan.suse.de \
--to=jkosina@suse.cz \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan.kim@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox