Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'block-5.10-2020-12-05' of git://git.kernel.dk/linux-block

Pull block fix from Jens Axboe:
"Single fix for an issue with chunk_sectors and stacked devices"

* tag 'block-5.10-2020-12-05' of git://git.kernel.dk/linux-block:
block: use gcd() to fix chunk_sectors limit stacking

+4 -1
+4 -1
block/blk-settings.c
··· 547 547 548 548 t->io_min = max(t->io_min, b->io_min); 549 549 t->io_opt = lcm_not_zero(t->io_opt, b->io_opt); 550 - t->chunk_sectors = lcm_not_zero(t->chunk_sectors, b->chunk_sectors); 550 + 551 + /* Set non-power-of-2 compatible chunk_sectors boundary */ 552 + if (b->chunk_sectors) 553 + t->chunk_sectors = gcd(t->chunk_sectors, b->chunk_sectors); 551 554 552 555 /* Physical block size a multiple of the logical block size? */ 553 556 if (t->physical_block_size & (t->logical_block_size - 1)) {