]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commitf68ff6bc0d0893d959aac39c662895096d866c84
tree21994cdf1650c7122359446262910261d164a48c
parent3f5b1169d2ab20ed14271654799121232b9eb9d7
parentec7f31b2a2d3bf6b9e4d4b8cd156587f1d0607d5
Merge branch 'autopi-deadlock' into for-6.19/block

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