Re: [dm-devel] [PATCH 2/3] block: add blk_alloc_disk_srcu

2022-01-11 Thread Jeff Moyer
Ming Lei writes: > Add blk_alloc_disk_srcu() so that we can allocate srcu inside request queue > for supporting blocking ->queue_rq(). > > dm-rq needs this API. > > Signed-off-by: Ming Lei Reviewed-by: Jeff Moyer > --- > block/genhd.c | 5 +++-- > include/linux/genhd.h | 12

[dm-devel] [PATCH 2/3] block: add blk_alloc_disk_srcu

2021-12-21 Thread Ming Lei
Add blk_alloc_disk_srcu() so that we can allocate srcu inside request queue for supporting blocking ->queue_rq(). dm-rq needs this API. Signed-off-by: Ming Lei --- block/genhd.c | 5 +++-- include/linux/genhd.h | 12 2 files changed, 11 insertions(+), 6 deletions(-) diff