diff options
author | Nick Piggin <npiggin@suse.de> | 2006-03-22 00:08:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-22 07:54:01 -0800 |
commit | f9aed0e2537174b95908f48b6052ae37196c9390 (patch) | |
tree | 0b5cd42f36f08086f0258a753203b840123c9301 /arch | |
parent | a6f563db09c54c80d80e9013182dc512a5e53d0f (diff) | |
download | kernel_samsung_tuna-f9aed0e2537174b95908f48b6052ae37196c9390.zip kernel_samsung_tuna-f9aed0e2537174b95908f48b6052ae37196c9390.tar.gz kernel_samsung_tuna-f9aed0e2537174b95908f48b6052ae37196c9390.tar.bz2 |
[PATCH] sg: use compound pages
sg increments the refcount of constituent pages in its higher order memory
allocations when they are about to be mapped by userspace. This is done so
the subsequent get_page/put_page when doing the mapping and unmapping does not
free the page.
Move over to the preferred way, that is, using compound pages instead. This
fixes a whole class of possible obscure bugs where a get_user_pages on a
constituent page may outlast the user mappings or even the driver.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Douglas Gilbert <dougg@torque.net>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions