Re: [PATCH] block/fops: fix refcount underflow in __blkdev_direct_IO()

From: Christoph Hellwig

Date: Fri Jun 05 2026 - 03:33:13 EST


On Wed, Jun 03, 2026 at 02:10:35AM +0000, Wentao Liang wrote:
> __blkdev_direct_IO() calls bio_get() and bio_put() around
> I/O operations, but if the I/O fails, the error path may call
> bio_put() twice, causing a refcount underflow.

What I/O failure do you observe?