]> Git Repo - linux.git/commit
[PATCH] sg: use compound pages
authorNick Piggin <[email protected]>
Wed, 22 Mar 2006 08:08:30 +0000 (00:08 -0800)
committerLinus Torvalds <[email protected]>
Wed, 22 Mar 2006 15:54:01 +0000 (07:54 -0800)
commitf9aed0e2537174b95908f48b6052ae37196c9390
tree0b5cd42f36f08086f0258a753203b840123c9301
parenta6f563db09c54c80d80e9013182dc512a5e53d0f
[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 <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Douglas Gilbert <[email protected]>
Cc: James Bottomley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/scsi/sg.c
This page took 0.050959 seconds and 4 git commands to generate.