[PATCH] nvmet: Finish the blk plug when integrity allocation fails
Keith Busch
kbusch at kernel.org
Wed Oct 28 08:49:05 PDT 2026
On Wed, Oct 28, 2026 at 02:44:36PM +0800, Guixin Liu wrote:
> nvmet_bdev_execute_rw() starts a plug before building the bios, but
> the two error exits taken when nvmet_bdev_alloc_bip() fails return
> without calling blk_finish_plug(). current->plug is left pointing
> at the stack frame of the returned function, so the next
> blk_flush_plug() walks a stale list.
>
> Route both failures through a common exit that finishes the plug.
Thanks, applied to nvme-7.4.
More information about the Linux-nvme
mailing list