]> git.baikalelectronics.ru Git - kernel.git/commit
mm, mempool: do not allow atomic resizing
authorDavid Rientjes <rientjes@google.com>
Tue, 14 Apr 2015 22:48:21 +0000 (15:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:49:06 +0000 (16:49 -0700)
commit7b4104d7929c1693b5797d25ab70c7fb52ae02bb
tree22d85ebbc47a9152cafc9373a8300d0abf92106b
parent48296dd083b30589aabb1e8e970ee9dabbb833d8
mm, mempool: do not allow atomic resizing

Allocating a large number of elements in atomic context could quickly
deplete memory reserves, so just disallow atomic resizing entirely.

Nothing currently uses mempool_resize() with anything other than
GFP_KERNEL, so convert existing callers to drop the gfp_mask.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Steffen Maier <maier@linux.vnet.ibm.com> [zfcp]
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Steve French <sfrench@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/s390/scsi/zfcp_erp.c
fs/cifs/connect.c
include/linux/mempool.h
mm/mempool.c