Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1494250
| From | Shaun Tancheff <shaun@tancheff.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v6 3/7] block: update chunk_sectors in blk_stack_limits() |
| Date | 2016-09-30 21:20 +0200 |
| Message-ID | <snbvI-642-19@gated-at.bofh.it> (permalink) |
| References | <snbvH-642-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Hannes Reinecke <hare@suse.de> Signed-off-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Damien Le Moal <damien.lemoal@hgst.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Shaun Tancheff <shaun.tancheff@seagate.com> Tested-by: Shaun Tancheff <shaun.tancheff@seagate.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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v6 0/7] ZBC / Zoned block device support Shaun Tancheff <shaun@tancheff.com> - 2016-09-30 21:20 +0200 [PATCH v6 1/7] block: Add 'zoned' queue limit Shaun Tancheff <shaun@tancheff.com> - 2016-09-30 21:20 +0200 [PATCH v6 2/7] blk-sysfs: Add 'chunk_sectors' to sysfs attributes Shaun Tancheff <shaun@tancheff.com> - 2016-09-30 21:20 +0200 [PATCH v6 6/7] sd: Implement support for ZBC devices Shaun Tancheff <shaun@tancheff.com> - 2016-09-30 21:20 +0200 [PATCH v6 5/7] block: Implement support for zoned block devices Shaun Tancheff <shaun@tancheff.com> - 2016-09-30 21:20 +0200 [PATCH v6 7/7] blk-zoned: implement ioctls Shaun Tancheff <shaun@tancheff.com> - 2016-09-30 21:20 +0200 [PATCH v6 3/7] block: update chunk_sectors in blk_stack_limits() Shaun Tancheff <shaun@tancheff.com> - 2016-09-30 21:20 +0200
csiph-web