Re: [PATCH] zloop: fix the error code in the blk_mq_alloc_disk message

From: Jens Axboe

Date: Tue Nov 03 2026 - 09:57:30 EST



On Sat, 31 Oct 2026 22:17:37 +0800, shao.mingyin@xxxxxxxxxx wrote:
> When blk_mq_alloc_disk() fails, "ret" still holds the zero returned by the
> preceding blk_mq_alloc_tag_set() call, so the error message always reports
> "err=0". Save PTR_ERR(zlo->disk) in "ret" before printing it, like the
> blk_mq_alloc_tag_set() and add_disk() failure paths do.

Applied, thanks!

[1/1] zloop: fix the error code in the blk_mq_alloc_disk message
commit: 703f6aee8d8d1cb6227af56169be6b1dc4d3c4d5

Best regards,
--
Jens Axboe