android_kernel_samsung_msm8976/include
Hugh Dickins 5d337b9194 [PATCH] swap: swap_lock replace list+device
The idea of a swap_device_lock per device, and a swap_list_lock over them all,
is appealing; but in practice almost every holder of swap_device_lock must
already hold swap_list_lock, which defeats the purpose of the split.

The only exceptions have been swap_duplicate, valid_swaphandles and an
untrodden path in try_to_unuse (plus a few places added in this series).
valid_swaphandles doesn't show up high in profiles, but swap_duplicate does
demand attention.  However, with the hold time in get_swap_pages so much
reduced, I've not yet found a load and set of swap device priorities to show
even swap_duplicate benefitting from the split.  Certainly the split is mere
overhead in the common case of a single swap device.

So, replace swap_list_lock and swap_device_lock by spinlock_t swap_lock
(generally we seem to prefer an _ in the name, and not hide in a macro).

If someone can show a regression in swap_duplicate, then probably we should
add a hashlock for the swap_map entries alone (shorts being anatomic), so as
to help the case of the single swap device too.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-05 00:05:42 -07:00
..
acpi /home/lenb/src/to-linus branch 'acpi-2.6.12' 2005-07-29 23:31:17 -04:00
asm-alpha [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-arm [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-arm26 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-cris [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-frv [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-generic [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-h8300 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-i386 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-ia64 [IA64] Low byte of current->personality is not a bitmask. 2005-08-30 14:59:24 -07:00
asm-m32r [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-m68k [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-m68knommu [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-mips [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-parisc [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-powerpc [PATCH] Move all the very similar files to asm-powerpc 2005-08-30 13:32:06 +10:00
asm-ppc Merge HEAD from master.kernel.org:/pub/scm/linux/kernel/git/paulus/ppc64-2.6 2005-08-29 21:44:33 -07:00
asm-ppc64 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-s390 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sh [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sh64 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sparc [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sparc64 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-um [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-v850 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-x86_64 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-xtensa [NET]: Introduce SO_{SND,RCV}BUFFORCE socket options 2005-08-29 15:31:35 -07:00
linux [PATCH] swap: swap_lock replace list+device 2005-09-05 00:05:42 -07:00
math-emu
media [PATCH] V4L: Miscellaneous fixes 2005-08-01 19:13:59 -07:00
mtd
net /spare/repo/netdev-2.6 branch 'master' 2005-09-01 18:02:01 -04:00
pcmcia [PATCH] pcmcia: fix pcmcia-cs compilation 2005-07-12 16:00:59 -07:00
rdma [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
rxrpc
scsi [SCSI] fix target scanning oops with fc transport class 2005-08-08 17:14:55 -05:00
sound [ALSA] version 1.0.10rc1 2005-08-30 08:48:35 +02:00
video