On Saturday 27 October 2007 21:47:09 Pekka Enberg wrote:Hi Pekka, Thanks. I think Willy did it because this is for printk. It makes more sense than everyone opencoding an -ENOMEM handler, which will have to be replaced by some mildly amusing string like "I want to printk but I have no memory!". Next think you know 70% of the kernel will be bad limericks as everyone tries to one-up each other. Firstly we don't have a buffer on first call (NULL), though we could introduce an sb_init() for that. Secondly, since the purpose of this code is because they can't do the printk all at once: who's to say that isn't because they need to grab a lock for some of it? Finally, we generally choose to expose the alloc flags to the caller to make them think about whether they really want to do allocation at this point. Cheers, Rusty. -
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Arjan van de Ven | Re: Linux 2.6.27-rc8 |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
