diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-05-14 05:42:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-14 05:42:25 -0700 |
| commit | 08aaf1cc54e61c4357828f7d029f9446144d0cc7 (patch) | |
| tree | 3d6cc9717fd51b250ebf5da8424e2635e2a08a5f /include/linux/buffer_head.h | |
| parent | 2afafa3b9804e7a8a515c528270121c5349dbf53 (diff) | |
[PATCH] filtered wakeups: apply to pagecache functions
From: William Lee Irwin III <wli@holomorphy.com>
This patch implements wake-one semantics for page wakeups in a single step.
Discrimination between distinct pages is achieved by passing the page to the
wakeup function, which compares it to a pointer in its own on-stack structure
containing the waitqueue element and the page. Bit discrimination is achieved
by storing the bit number in that same structure and testing the bit in the
wakeup function. Wake-one semantics are achieved by using WQ_FLAG_EXCLUSIVE
in the codepaths waiting to acquire the bit for mutual exclusion.
Diffstat (limited to 'include/linux/buffer_head.h')
0 files changed, 0 insertions, 0 deletions
