summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2016-07-16 00:30:20 +0300
committerMike Snitzer <snitzer@redhat.com>2016-08-15 16:23:14 +0300
commit0a83df6c8cacafbefc5b56b2fbcb92b0d75b744b (patch)
tree73aaaffa807cffe67c08967e73cc0d7e3a3f2ff8 /drivers/md
parent802934b2cfde463b72cc1b9bc1c081895a90be53 (diff)
downloadlinux-0a83df6c8cacafbefc5b56b2fbcb92b0d75b744b.tar.xz
dm crypt: increase mempool reserve to better support swapping
Increase mempool size from 16 to 64 entries. This increase improves swap on dm-crypt performance. When swapping to dm-crypt, all available memory is temporarily exhausted and dm-crypt can only use the mempool reserve. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index 4e9784b4e0ac..eedba67b0e3e 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -181,7 +181,7 @@ struct crypt_config {
u8 key[0];
};
-#define MIN_IOS 16
+#define MIN_IOS 64
static void clone_init(struct dm_crypt_io *, struct bio *);
static void kcryptd_queue_crypt(struct dm_crypt_io *io);