]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm: allocate buffer for messages with small number of arguments using GFP_NOIO
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 31 Oct 2013 17:55:45 +0000 (13:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:50:31 +0000 (10:50 -0800)
commit3ccb527f871a225b8eada036d24d41c59e40a2e4
treeea00568bfa02c2f7eda7a5ef17a52efeef2d9808
parentb725146ee9fed4d4c19ae5a6b028d5e856730454
dm: allocate buffer for messages with small number of arguments using GFP_NOIO

commit f36afb3957353d2529cb2b00f78fdccd14fc5e9c upstream.

dm-mpath and dm-thin must process messages even if some device is
suspended, so we allocate argv buffer with GFP_NOIO. These messages have
a small fixed number of arguments.

On the other hand, dm-switch needs to process bulk data using messages
so excessive use of GFP_NOIO could cause trouble.

The patch also lowers the default number of arguments from 64 to 8, so
that there is smaller load on GFP_NOIO allocations.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-table.c