]> git.baikalelectronics.ru Git - kernel.git/commit
md: remove redundant memalloc scope API usage
authorColy Li <colyli@suse.de>
Thu, 9 Apr 2020 14:17:23 +0000 (22:17 +0800)
committerSong Liu <songliubraving@fb.com>
Wed, 13 May 2020 18:22:31 +0000 (11:22 -0700)
commitfa99ed7c0235f800abd253715dbdc42926823c14
treed0a9b3fa1c99b3fd7b42a9d7befa4d36b42eb67b
parent5bac639bd4c7bf6f7e0eb36b7a88546d969a0cd1
md: remove redundant memalloc scope API usage

In mddev_create_serial_pool(), memalloc scope APIs memalloc_noio_save()
and memalloc_noio_restore() are used when allocating memory by calling
mempool_create_kmalloc_pool(). After adding the memalloc scope APIs in
raid array suspend context, it is unncessary to explicitly call them
around mempool_create_kmalloc_pool() any longer.

This patch removes the redundant memalloc scope APIs in
mddev_create_serial_pool().

Signed-off-by: Coly Li <colyli@suse.de>
Cc: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md.c