splice: use mapping_gfp_mask
commitab5fba64e22453b4acb0272332b38409a6ba3010
authorHugh Dickins <hugh@veritas.com>
Thu, 3 Apr 2008 22:35:22 +0000 (3 23:35 +0100)
committerOliver Pinter <oliver.pntr@gmail.com>
Mon, 21 Apr 2008 15:08:15 +0000 (21 17:08 +0200)
treee302c99de5fdcfe3e0ca833f06ec17b292294afa
parent552a99092bd8a74ec90d40f71eae819337d6928b
splice: use mapping_gfp_mask

The loop block driver is careful to mask __GFP_IO|__GFP_FS out of its
mapping_gfp_mask, to avoid hangs under memory pressure.  But nowadays
it uses splice, usually going through __generic_file_splice_read.  That
must use mapping_gfp_mask instead of GFP_KERNEL to avoid those hangs.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
fs/splice.c