Skip to contentSkip to conversation

block: fix rootwait= again

PATCH Applied Christoph Hellwig 4 participants 4 messages Jun 9, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: fix rootwait= again

The previous rootwait fix added an -EINVAL return to a completely bogus superflous branch, fix this.

Fixes 1341c7d2ccf4 ("block: fix rootwait=")
---
 block/early-lookup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/early-lookup.c +1 -1
index 48ea3e982419cc..a5be3c68ed079c 100644
@@ -181,7 +181,7 @@ static int __init devt_from_devname(const char *name, dev_t *devt)
 	*p = '\0';
 	*devt = blk_lookup_devt(s, part);
 	if (*devt)
-		return -ENODEV;
+		return 0;
 
 	/* try disk name without p<part number> */
 	if (p < s + 2 || !isdigit(p[-2]) || p[-1] != 'p')
Signature · 1 line
2.39.2
Tested-by on v1 1/1
#2 lore raw
In reply to Christoph Hellwig
Quoted 7 lines · Christoph Hellwig

The previous rootwait fix added an -EINVAL return to a completely bogus superflous branch, fix this.

Fixes 1341c7d2ccf4 ("block: fix rootwait=")

This fixes the issue I've found in today's next-20230609.

Quoted 9 lines
---
  block/early-lookup.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
block/early-lookup.c +0 -0
index 48ea3e982419cc..a5be3c68ed079c 100644

block/early-lookup.c static int __init devt_from_devname(const char *name, dev_t *devt) · line 187

Quoted 8 lines
block/early-lookup.c +1 -1
@@ -181,7 +181,7 @@ static int __init devt_from_devname(const char *name, dev_t *devt)
  	*p = '\0';
  	*devt = blk_lookup_devt(s, part);
  	if (*devt)
-		return -ENODEV;
+		return 0;
 
  	/* try disk name without p<part number> */
  	if (p < s + 2 || !isdigit(p[-2]) || p[-1] != 'p')

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
maintainer Applied
#3 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

The previous rootwait fix added an -EINVAL return to a completely bogus superflous branch, fix this.

Applied, thanks!

[1/1] block: fix rootwait= again

      commit: bb91a7d96a5c9662f41a08024f405bf9ad333e86

Best regards,

Signature · 1 line
Jens Axboe