Commit 5dee2477df5368368b7dba810a17a3c411a1d0f0
Committed by
Jens Axboe
1 parent
80ddf247c8
Exists in
master
and in
39 other branches
block: Do not clamp max_hw_sectors for stacking devices
Stacking devices do not have an inherent max_hw_sector limit. Set the default to INT_MAX so we are bounded only by capabilities of the underlying storage. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
block/blk-settings.c
... | ... | @@ -111,7 +111,8 @@ |
111 | 111 | lim->max_hw_segments = MAX_HW_SEGMENTS; |
112 | 112 | lim->seg_boundary_mask = BLK_SEG_BOUNDARY_MASK; |
113 | 113 | lim->max_segment_size = MAX_SEGMENT_SIZE; |
114 | - lim->max_sectors = lim->max_hw_sectors = BLK_DEF_MAX_SECTORS; | |
114 | + lim->max_sectors = BLK_DEF_MAX_SECTORS; | |
115 | + lim->max_hw_sectors = INT_MAX; | |
115 | 116 | lim->logical_block_size = lim->physical_block_size = lim->io_min = 512; |
116 | 117 | lim->bounce_pfn = (unsigned long)(BLK_BOUNCE_ANY >> PAGE_SHIFT); |
117 | 118 | lim->alignment_offset = 0; |