]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'autopi-deadlock' into for-6.19/block
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Nov 2025 19:43:02 +0000 (12:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Nov 2025 19:43:02 +0000 (12:43 -0700)
Currently the automatic block layer PI generation allocates the integrity
buffer using kmalloc, and thus could deadlock, or fail I/O request due
to memory pressure.

Fix this by adding a mempool, and capping the maximum I/O size on PI
capable devices to not exceed the allocation size of the mempool.

Link: https://lore.kernel.org/linux-block/20251103101653.2083310-1-hch@lst.de/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
* autopi-deadlock:
  block: make bio auto-integrity deadlock safe
  block: blocking mempool_alloc doesn't fail


Trivial merge