Skip to content

Commit

Permalink
libnvdimm, pmem: fix up max_hw_sectors
Browse files Browse the repository at this point in the history
There is no hardware limit to enforce on the size of the i/o that can be passed
to an nvdimm block device, so set it to UINT_MAX.

Reviewed-by: Vishal Verma <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
djbw committed Jun 26, 2015
1 parent fcae695 commit 43d3fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvdimm/pmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static int pmem_attach_disk(struct nd_namespace_common *ndns,
return -ENOMEM;

blk_queue_make_request(pmem->pmem_queue, pmem_make_request);
blk_queue_max_hw_sectors(pmem->pmem_queue, 1024);
blk_queue_max_hw_sectors(pmem->pmem_queue, UINT_MAX);
blk_queue_bounce_limit(pmem->pmem_queue, BLK_BOUNCE_ANY);

disk = alloc_disk(0);
Expand Down

0 comments on commit 43d3fa3

Please sign in to comment.