splice: use mapping_gfp_mask
commitffd834ab862bae9a45f86bc6818fcf1d77178641
authorHugh Dickins <hugh@veritas.com>
Thu, 3 Apr 2008 22:35:22 +0000 (3 23:35 +0100)
committerOliver Pinter <oliver.pntr@gmail.com>
Thu, 1 May 2008 13:40:25 +0000 (1 15:40 +0200)
tree5a1475928eca526aa22a38ade5fed231809c5d10
parent003ee38ed3d5194eaed86e5639a58fbdc60097cc
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