Skip to content

standardized waitqueue hashing

William Lee Irwin III linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4standardize bit waiting data typefs/buffer.c include/linux/wait.h kernel/fork.c +1 more+68 -986 replies
1/4standardize bit waiting data typefs/buffer.c include/linux/wait.h kernel/fork.c +1 more+66 -980 replies
2/4consolidate bit waiting code patternsinclude/linux/wait.h kernel/fork.c mm/filemap.c+52 -240 replies
2/4consolidate bit waiting code patternsinclude/linux/wait.h kernel/fork.c mm/filemap.c+52 -224 replies
3/4eliminate bh waitqueue hashtablefs/buffer.c fs/jbd/transaction.c include/linux/wait.h +1 more+50 -510 replies
3/4eliminate bh waitqueue hashtablefs/buffer.c fs/jbd/transaction.c include/linux/wait.h +1 more+90 -511 reply
4/4eliminate inode waitqueue hashtablefs/inode.c+10 -390 replies
4/4eliminate inode waitqueue hashtablefs/inode.c+10 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [0/4] standardized waitqueue hashing
Quoted 9 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc1/2.6.9-rc1-mm1/
- nicksched is still here. There has been very little feedback, except that it seems to slow some workloads on NUMA.
- Added a __must_check to the x86 copy_*_user functions. This means that with a sufficiently recent gcc, all unchecked copy_*_user() calls will generate a warning.
I fixed a few things, but binfmt_elf.c is a mess.
It's not clear how to apply the same debug check to put_user() and friends.

The following patch series consolidates the various instances of waitqueue hashing to use a uniform structure and share the per-zone hashtable among all waitqueue hashers. This is expected to increase the number of hashtable buckets available for waiting on bh's and inodes and eliminate statically allocated kernel data structures for greater node locality and reduced kernel image size. Some attempt was made to look similar to Oleg Nesterov's suggested API in order to provide some kind of credit for independent invention of something very similar (the original versions of these patches predated my public postings on the subject of filtered waitqueues).

These patches have the further benefit and intention of enabling aio to use filtered wakeups by standardizing the data structure passed to wake functions so that embedded waitqueue elements in aio structures may be succesfully passed to the filtered wakeup wake functions, though this patch series doesn't implement that particular functionality.

Successfully stress-tested on x86-64 and ia64.

-- wli