mbox series

[RFC,v3,0/7] lib/sbitmap: fix shallow_depth tag allocation

Message ID 20241221093710.926309-1-yukuai1@huaweicloud.com (mailing list archive)
Headers show
Series lib/sbitmap: fix shallow_depth tag allocation | expand

Message

Yu Kuai Dec. 21, 2024, 9:37 a.m. UTC
From: Yu Kuai <yukuai3@huawei.com>

Changes in RFC v3:
 - only patch 1,2 is from v1/v2, others are new patches, in order to change
 async_depth to request queue attribute.

Changes in RFC v2:
 - update commit message for patch 1;
 - also handle min_shallow_depth in patch 2;
 - add patch 3 to choose none elevator by default;
 - add patch 4 to fix default wake_batch;

Yu Kuai (7):
  lib/sbitmap: convert shallow_depth from one word to the whole sbitmap
  lib/sbitmap: make sbitmap_get_shallow() internal
  block/elevator: add new ops async_depth_updated()
  block: change the filed nr_requests to unsgined int in request_queue
  block: add new queue sysfs api async_depth
  block/mq-deadline: switch to use queue async_depth
  block/kyber-iosched: switch to use queue async_depth

 block/blk-sysfs.c       | 35 ++++++++++++++++++++
 block/elevator.h        |  1 +
 block/kyber-iosched.c   | 31 +++--------------
 block/mq-deadline.c     | 57 ++++++--------------------------
 include/linux/blkdev.h  |  8 ++++-
 include/linux/sbitmap.h | 19 +----------
 lib/sbitmap.c           | 73 +++++++++++++++++++++++++----------------
 7 files changed, 103 insertions(+), 121 deletions(-)