splice: fix repeated kmap()'s in default_file_splice_read()
authorJens Axboe <jens.axboe@oracle.com>
Wed, 13 May 2009 06:35:35 +0000 (08:35 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 13 May 2009 06:35:35 +0000 (08:35 +0200)
commit4f23122858a27ba97444b9b37a066d83edebd4c8
tree7ccfea2b6d606318c9812f0dc9c3aa39411ac456
parent2b1ccc0ee918a653d0483fdad9dd6112ce8e9043
splice: fix repeated kmap()'s in default_file_splice_read()

We cannot reliably map more than one page at the time, or we risk
deadlocking. Just allocate the pages from low mem instead.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/splice.c