diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2013-10-31 13:55:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-04 10:56:44 -0800 |
commit | 4c52f001344510d1e26a33cfdf971a12338a63d9 (patch) | |
tree | 2fdb798dc331e41b94508204655c56f38017ccbf /security | |
parent | 8fafee9829f539e17ea8678a6f56d2b897ffe3cc (diff) |
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions