Re: [PATCH] block: fix rootwait=

From: Jens Axboe
Date: Wed Jun 07 2023 - 10:01:05 EST


On 6/7/23 7:57 AM, Christoph Hellwig wrote:
> Failures to look up the gendisk must return -ENODEV so that rootwait
> retries the lookup instead of -EINVAL which exits early.
>
> Fixes: cf056a431215 ("init: improve the name_to_dev_t interface")
> Reported-by: Fabio Estevam <festevam@xxxxxxxxx>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> Tested-by: Fabio Estevam <festevam@xxxxxxxxx>
> ---
>
> [Jens, if you need to rebase for any reason it might make sense to fold
> this into the offending patch]

I have applied it for now, and probably not a high likelihood of rebasing
this late. But if I do, I'll fold it in.

--
Jens Axboe