[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160930191237.13695-4-shaun@tancheff.com>
Date: Fri, 30 Sep 2016 14:12:32 -0500
From: Shaun Tancheff <shaun@...cheff.com>
To: Jens Axboe <axboe@...nel.dk>
Cc: Hannes Reinecke <hare@...e.de>, linux-block@...r.kernel.org,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Christoph Hellwig <hch@....de>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
"James E . J . Bottomley" <jejb@...ux.vnet.ibm.com>,
Damien Le Moal <damien.lemoal@...t.com>,
Michael T Lombardi <michael.t.lombardi@...gate.com>,
Hannes Reinecke <hare@...e.com>
Subject: [PATCH v6 3/7] block: update chunk_sectors in blk_stack_limits()
From: Hannes Reinecke <hare@...e.de>
Signed-off-by: Hannes Reinecke <hare@...e.com>
Signed-off-by: Damien Le Moal <damien.lemoal@...t.com>
Reviewed-by: Christoph Hellwig <hch@....de>
Reviewed-by: Martin K. Petersen <martin.petersen@...cle.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@...gate.com>
Tested-by: Shaun Tancheff <shaun.tancheff@...gate.com>
---
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.9.3
Powered by blists - more mailing lists