[PATCH] splice: retrieve mapping after locking the page
authorJens Axboe <axboe@suse.de>
Tue, 20 Jun 2006 13:01:12 +0000 (15:01 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Fri, 23 Jun 2006 15:10:39 +0000 (17:10 +0200)
commit9e94cd4fd1812bab45237f998b3c6fa1b24023fd
treee196939ff1df56179387f0ec440cc9ce52cf1f55
parentfd61af0384014ca29428ace7c17a978b755aeddd
[PATCH] splice: retrieve mapping after locking the page

Otherwise we could be racing with truncate/mapping removal.

Problem found/fixed by Nick Piggin <npiggin@suse.de>, logic rewritten
by me.

Signed-off-by: Jens Axboe <axboe@suse.de>
fs/splice.c