block: fix rootwait=
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Jun 2023 13:57:46 +0000 (15:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Jun 2023 14:00:14 +0000 (08:00 -0600)
commit1341c7d2ccf42ed91aea80b8579d35bc1ea381e2
tree9cb137040b389326e0b6ace0a2652376e387cf7a
parent3d2af77e31ade05ff7ccc3658c3635ec1bea0979
block: fix rootwait=

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@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20230607135746.92995-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/early-lookup.c