Message ID | 1468934439-93579-3-git-send-email-hare@suse.de (mailing list archive) |
---|---|
State | RFC |
Headers | show |
On 7/19/16 22:20, Hannes Reinecke wrote: > Signed-off-by: Hannes Reinecke <hare@suse.com> > --- > block/blk-settings.c | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Damien Le Moal <damien.lemoal@hgst.com> Tested-by: Damien Le Moal <damien.lemoal@hgst.com>
Looks fine,
Reviewed-by: Christoph Hellwig <hch@lst.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>> "Hannes" == Hannes Reinecke <hare@suse.de> writes: Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
diff --git a/block/blk-settings.c b/block/blk-settings.c index f679ae1..bfaf579 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -630,6 +630,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);
Signed-off-by: Hannes Reinecke <hare@suse.com> --- block/blk-settings.c | 4 ++++ 1 file changed, 4 insertions(+)