<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/block/blk-settings.c, branch linux-6.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-07-11T10:51:22Z</updated>
<entry>
<title>block: check for max_hw_sectors underflow</title>
<updated>2024-07-11T10:51:22Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2024-05-24T10:46:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4734b5d72d4d9c5eff64841ee9492d26a76e5ab3'/>
<id>urn:sha1:4734b5d72d4d9c5eff64841ee9492d26a76e5ab3</id>
<content type='text'>
[ Upstream commit e993db2d6e5207f1ae061c2ac554ab1f714c741d ]

The logical block size need to be smaller than the max_hw_sector
setting, otherwise we can't even transfer a single LBA.

Signed-off-by: Hannes Reinecke &lt;hare@kernel.org&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>block: stack max_user_sectors</title>
<updated>2024-06-12T09:39:52Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2024-05-23T18:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff3deb79cc1902fb4e100703fb85a1db784af9ad'/>
<id>urn:sha1:ff3deb79cc1902fb4e100703fb85a1db784af9ad</id>
<content type='text'>
[ Upstream commit e528bede6f4e6822afdf0fa80be46ea9199f0911 ]

The max_user_sectors is one of the three factors determining the actual
max_sectors limit for READ/WRITE requests.  Because of that it needs to
be stacked at least for the device mapper multi-path case where requests
are directly inserted on the lower device.  For SCSI disks this is
important because the sd driver actually sets it's own advisory limit
that is lower than max_hw_sectors based on the block limits VPD page.
While this is a bit odd an unusual, the same effect can happen if a
user or udev script tweaks the value manually.

Fixes: 4f563a64732d ("block: add a max_user_discard_sectors queue limit")
Reported-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Acked-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Reviewed-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Link: https://lore.kernel.org/r/20240523182618.602003-3-hch@lst.de
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>block: set default max segment size in case of virt_boundary</title>
<updated>2024-05-07T02:27:51Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2024-04-24T13:47:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffd379c13fc0ab2c7c4313e7a01c71d9d202cc88'/>
<id>urn:sha1:ffd379c13fc0ab2c7c4313e7a01c71d9d202cc88</id>
<content type='text'>
For devices with virt_boundary limit, the driver may provide zero max
segment size, we have to set it as UINT_MAX at default. Otherwise, it
may cause warning in driver when handling sglist.

Fix it by setting default max segment size as UINT_MAX.

Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Mike Snitzer &lt;snitzer@kernel.org&gt;
Fixes: b561ea56a264 ("block: allow device to have both virt_boundary_mask and max segment size")
Tested-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Reported-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Closes: https://lore.kernel.org/linux-block/7e38b67c-9372-a42d-41eb-abdce33d3372@linux-m68k.org/
Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Link: https://lore.kernel.org/r/20240424134722.2584284-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: allow device to have both virt_boundary_mask and max segment size</title>
<updated>2024-04-07T21:50:33Z</updated>
<author>
<name>Ming Lei</name>
</author>
<published>2024-04-07T13:19:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b561ea56a26415bf44ce8ca6a8e625c7c390f1ea'/>
<id>urn:sha1:b561ea56a26415bf44ce8ca6a8e625c7c390f1ea</id>
<content type='text'>
When one stacking device is over one device with virt_boundary_mask and
another one with max segment size, the stacking device have both limits
set. This way is allowed before d690cb8ae14b ("block: add an API to
atomically update queue limits").

Relax the limit so that we won't break such kind of stacking setting.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218687
Reported-by: janpieter.sollie@edpnet.be
Fixes: d690cb8ae14b ("block: add an API to atomically update queue limits")
Link: https://lore.kernel.org/linux-block/ZfGl8HzUpiOxCLm3@fedora/
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Mike Snitzer &lt;snitzer@kernel.org&gt;
Cc: dm-devel@lists.linux.dev
Cc: Song Liu &lt;song@kernel.org&gt;
Cc: linux-raid@vger.kernel.org
Signed-off-by: Ming Lei &lt;ming.lei@redhat.com&gt;
Reviewed-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Link: https://lore.kernel.org/r/20240407131931.4055231-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: don't reject too large max_user_sectors in blk_validate_limits</title>
<updated>2024-03-26T17:28:52Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2024-03-26T06:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=038105a200689ae07eb9e804ca2295e628a45820'/>
<id>urn:sha1:038105a200689ae07eb9e804ca2295e628a45820</id>
<content type='text'>
We already cap down the actual max_sectors to the max of the hardware
and user limit, so don't reject the configuration.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: John Garry &lt;john.g.garry@oracle.com&gt;
Reviewed-by: Damien Le Moal &lt;dlemoal@kernel.org&gt;
Link: https://lore.kernel.org/r/20240326060745.2349154-1-hch@lst.de
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: fix mismatched kerneldoc function name</title>
<updated>2024-03-14T15:40:47Z</updated>
<author>
<name>Jiapeng Chong</name>
</author>
<published>2024-03-14T02:56:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c4ab8ae416350ce817339f239bdaaf351212f15'/>
<id>urn:sha1:4c4ab8ae416350ce817339f239bdaaf351212f15</id>
<content type='text'>
No functional modification involved.

block/blk-settings.c:281: warning: expecting prototype for queue_limits_commit_set(). Prototype was for queue_limits_set() instead.

Reported-by: Abaci Robot &lt;abaci@linux.alibaba.com&gt;
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8539
Signed-off-by: Jiapeng Chong &lt;jiapeng.chong@linux.alibaba.com&gt;
Reviewed-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Link: https://lore.kernel.org/r/20240314025615.71269-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>Revert "dm: use queue_limits_set"</title>
<updated>2024-03-12T00:11:28Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2024-03-12T00:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bff4b74625fea851f9dd61e747a162d2f6b3317e'/>
<id>urn:sha1:bff4b74625fea851f9dd61e747a162d2f6b3317e</id>
<content type='text'>
This reverts commit 8e0ef412869430d114158fc3b9b1fb111e247bd3.

It's broken, and causes the boot to fail on encrypted volumes.

Reported-and-bisected-by: Johannes Weiner &lt;hannes@cmpxchg.org&gt;
Link: https://lore.kernel.org/all/20240311235023.GA1205@cmpxchg.org/
Acked-by: Jens Axboe &lt;axboe@kernel.dk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>block: remove disk_stack_limits</title>
<updated>2024-03-06T16:59:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2024-03-03T14:01:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd27a84b06aa9ea6a94b0f3e59dc768f981962e1'/>
<id>urn:sha1:dd27a84b06aa9ea6a94b0f3e59dc768f981962e1</id>
<content type='text'>
disk_stack_limits is unused now, remove it.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed--by: Song Liu &lt;song@kernel.org&gt;
Tested-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Song Liu &lt;song@kernel.org&gt;
Link: https://lore.kernel.org/r/20240303140150.5435-12-hch@lst.de
</content>
</entry>
<entry>
<title>dm: use queue_limits_set</title>
<updated>2024-03-01T15:54:42Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2024-02-28T22:56:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e0ef412869430d114158fc3b9b1fb111e247bd3'/>
<id>urn:sha1:8e0ef412869430d114158fc3b9b1fb111e247bd3</id>
<content type='text'>
Use queue_limits_set which validates the limits and takes care of
updating the readahead settings instead of directly assigning them to
the queue.  For that make sure all limits are actually updated before
the assignment.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: Mike Snitzer &lt;snitzer@kernel.org&gt;
Link: https://lore.kernel.org/r/20240228225653.947152-4-hch@lst.de
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>block: add a queue_limits_stack_bdev helper</title>
<updated>2024-03-01T15:54:42Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2024-02-28T22:56:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c1373f1cf452e4c7553a9d3bc05d87ec15c4f85f'/>
<id>urn:sha1:c1373f1cf452e4c7553a9d3bc05d87ec15c4f85f</id>
<content type='text'>
Add a small wrapper around blk_stack_limits that allows passing a bdev
for the bottom device and prints an error in case of misaligned
device. The name fits into the new queue limits API and the intent is
to eventually replace disk_stack_limits.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Link: https://lore.kernel.org/r/20240228225653.947152-3-hch@lst.de
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
