[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090211.140259.206413808.davem@davemloft.net>
Date: Wed, 11 Feb 2009 14:02:59 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: akpm@...ux-foundation.org
Cc: penguin-kernel@...ove.SAKURA.ne.jp, netdev@...r.kernel.org
Subject: Re: [patch 1/2] net: don't use in_atomic() in gfp_any()
From: Andrew Morton <akpm@...ux-foundation.org>
Date: Wed, 11 Feb 2009 13:48:42 -0800
> Is gfp_any() supposed to be usable from hardirq context?
>
> If so, we should use in_interrupt().
>
> If not, we should use in_softirq(), and we'll then get might_sleep()
> warnings if anyone uses gfp_any() from hard irq context.
It never will be used in hardware IRQ context, at least
in the networking.
And all uses in the tree are.. networking :-)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists