summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-verity.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2013-07-10 23:41:15 +0100
committerAlasdair G Kergon <agk@redhat.com>2013-07-10 23:41:15 +0100
commit1c0e883e86ece31880fac2f84b260545d66a39e0 (patch)
treeb56dd76ef7c1c0598af5b830e2a3d8f8a38f772b /drivers/md/dm-verity.c
parent6c182cd88d179cbbd06f4f8a8a19b6977940753f (diff)
downloadlinux-1c0e883e86ece31880fac2f84b260545d66a39e0.tar.bz2
dm ioctl: set noio flag to avoid __vmalloc deadlock
Set noio flag while calling __vmalloc() because it doesn't fully respect gfp flags to avoid a possible deadlock (see commit 502624bdad3dba45dfaacaf36b7d83e39e74b2d2). This should be backported to stable kernels 3.8 and newer. The kernel 3.8 doesn't have memalloc_noio_save(), so we should set and restore process flag PF_MEMALLOC instead. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-verity.c')
0 files changed, 0 insertions, 0 deletions