[PATCH] nvmet: Finish the blk plug when integrity allocation fails
Nilay Shroff
nilay at linux.ibm.com
Wed Oct 28 07:56:01 PDT 2026
On 10/28/26 12:14 PM, 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.
>
> Fixes: c6e3f13398123 ("nvmet: add metadata support for block devices")
> Cc:stable at vger.kernel.org
> Signed-off-by: Guixin Liu<kanie at linux.alibaba.com>
Looks good to me:
Reviewed-by: Nilay Shroff <nilay at linux.ibm.com>
More information about the Linux-nvme
mailing list