mbox series

[v4,0/2] blk-mq: Avoid memory reclaim when allocating

Message ID 20190930015213.8865-1-xiubli@redhat.com (mailing list archive)
Headers show
Series blk-mq: Avoid memory reclaim when allocating | expand

Message

Xiubo Li Sept. 30, 2019, 1:52 a.m. UTC
From: Xiubo Li <xiubli@redhat.com>

Changed in V2:
- Addressed the comment from Ming Lei, thanks.

Changed in V3:
- Switch to memalloc_noio_save/restore from Christoph's comment, thanks.

Changed in V4:
- Switch back to v2 by remove the memalloc_ stuff
- With a small fix by making all the gfp flags to BLK_MQ_GFP_FLAGS in
blk_mq_alloc_rq_map where the NOIO is needed.

Xiubo Li (2):
  blk-mq: Avoid memory reclaim when allocating request map
  blk-mq: use BLK_MQ_GFP_FLAGS macro instead

 block/blk-mq-tag.c |  5 +++--
 block/blk-mq-tag.h |  5 ++++-
 block/blk-mq.c     | 20 +++++++++++---------
 3 files changed, 18 insertions(+), 12 deletions(-)