Re: [PATCH 10/15] libnvdimm: fix up max_hw_sectors

Dan Williams
2015-06-21T13:28:54Z

On Sun, Jun 21, 2015 at 3:08 AM, Christoph Hellwig <hch@lst.de> wrote:
>> +void nd_blk_queue_init(struct request_queue *q)
>> +{
>> + blk_queue_max_hw_sectors(q, UINT_MAX);
>> + blk_queue_bounce_limit(q, BLK_BOUNCE_ANY);
>> +}
>
> Please just add the calls to the drivers instead of this helper which
> hides the intent.

I thought it made it clearer what properties are shared between block
devices on an nvdimm bus, but if you're initial reaction is that it
hides intent I'll kill the helper.