On Wed, Sep 28, 2016 at 3:45 AM, Damien Le Moal <[email protected]> wrote: > From: Hannes Reinecke <[email protected]> > > Signed-off-by: Hannes Reinecke <[email protected]> > Signed-off-by: Damien Le Moal <[email protected]> > --- > block/blk-settings.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/block/blk-settings.c b/block/blk-settings.c > index b1d5b7f..55369a6 100644 > --- a/block/blk-settings.c > +++ b/block/blk-settings.c > @@ -631,6 +631,10 @@ int blk_stack_limits(struct queue_limits *t, struct > queue_limits *b, > t->discard_granularity; > } > > + if (b->chunk_sectors) > + t->chunk_sectors = min_not_zero(t->chunk_sectors, > + b->chunk_sectors); > + > return ret; > } > EXPORT_SYMBOL(blk_stack_limits); > -- > 2.7.4
Reviewed-by: Shaun Tancheff <[email protected]> Tested-by: Shaun Tancheff <[email protected]> > > -- > To unsubscribe from this list: send the line "unsubscribe linux-block" in > the body of a message to [email protected] > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Shaun Tancheff -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
