On Fri, 26 Jun 2009, Eric Dumazet wrote:Not all the code that uses add_wait_queue() does need to have the MB, like code that does the most common pattern: xxx_poll(...) { poll_wait(...); lock(); flags = calc_flags(->status); unlock(); return flags; } xxx_update(...) { lock(); ->status = ...; unlock(); if (waitqueue_active()) wake_up(); } It's the code that does the lockless flags calculation in ->poll that might need it. I dunno what the amount of changes are, but cross-matching MB across subsystems does not look nice. IMHO that's a detail of the subsystem locking, and should be confined inside the subsystem itself. No? - Davide -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Benjamin Herrenschmidt | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Mariusz Kozlowski | [PATCH 03] drivers/sbus/char/bbc_envctrl.c: kmalloc + memset conversion to kzalloc |
| Yinghai Lu | [PATCH 02/16] x86: introduce nr_irqs for 64bit v3 |
git: | |
| Gerrit Renker | [PATCH 13/37] dccp: Deprecate Ack Ratio sysctl |
| James Morris | Re: [GIT]: Networking |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
