Re: [PATCHSET] printk: implement printk_header() and merging printk

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tejun Heo <htejun@...>
Cc: <linux-kernel@...>, <daniel.ritz-ml@...>, <randy.dunlap@...>, <jeff@...>, <linux-ide@...>, Matthew Wilcox <matthew@...>
Date: Monday, January 21, 2008 - 9:28 pm

On Tue, 2008-01-22 at 10:00 +0900, Tejun Heo wrote:

Well there are lots of current and potential future users of this
function, many of them down at the end of long call chains. So I'm more
worried about the new cases that embrace this approach and suddenly add
300 bytes of stack. In fact, if this is at all popular, we can expect to
have more than one of these frames on the stack in various paths. 

Given that it only exists to make output prettier, it doesn't -really-
justify increased stack usage.


Adding a gfp_flags arg isn't too painful. And we've generally avoided
having separate function calls for atomic vs non-atomic allocation.

Btw, we can also easily hide Willy or Rusty's stringbuf implementation
under the covers here and still have a scheme that automatically falls
back to direct printk..

-- 
Mathematics is the supreme nostalgia of our time.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCHSET] printk: implement printk_header() and merging..., Matt Mackall, (Mon Jan 21, 9:28 pm)
[PATCH 3/4] printk: implement merging printk, Tejun Heo, (Tue Jan 15, 9:00 pm)
Re: [PATCH 3/4] printk: implement merging printk, Randy Dunlap, (Tue Jan 15, 11:02 pm)
Re: [PATCH 3/4] printk: implement merging printk, Tejun Heo, (Tue Jan 15, 11:08 pm)
[PATCH 2/4] printk: implement [v]printk_header(), Tejun Heo, (Tue Jan 15, 9:00 pm)