• Coly Li's avatar
    md: remove redundant memalloc scope API usage · 3024ba2d
    Coly Li authored
    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: default avatarColy Li <colyli@suse.de>
    Cc: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
    Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
    3024ba2d
md.c 256 KB