We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb15ffd commit ffd379cCopy full SHA for ffd379c
block/blk-settings.c
@@ -188,7 +188,10 @@ static int blk_validate_limits(struct queue_limits *lim)
188
* bvec and lower layer bio splitting is supposed to handle the two
189
* correctly.
190
*/
191
- if (!lim->virt_boundary_mask) {
+ if (lim->virt_boundary_mask) {
192
+ if (!lim->max_segment_size)
193
+ lim->max_segment_size = UINT_MAX;
194
+ } else {
195
/*
196
* The maximum segment size has an odd historic 64k default that
197
* drivers probably should override. Just like the I/O size we
0 commit comments