On Wed, Apr 01, 2020 at 12:11:09PM -0700, Sagi Grimberg wrote: >> I think this needs to go into blk_queue_stack_limits instead, otherwise >> we have the same problem with other stacking drivers. > > I thought about this, but the stack_limits has different variants > (blk_stack_limits, bdev_stack_limits) but only the first takes a > request_queue... > > I see that dm-table does roughly the same thing, drbd ignores it. > In general, dm is doing a whole bunch of stacking limits/capabilities > related stuff that are not involved in blk_stack_limits... > > I could theoretically add a flag to queue_limits to mirror this, is > that what you are suggesting? I guess we'll just go with your v4 patch for now and I'll see if I can refactor this mess later..