lkml.org 
[lkml]   [2014]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] do_mounts: fix not all available filesystems get tried during boot
From
While debugging a kernel panic with 3.14.1 it became clear that some
changes made some filesystems mount routines return error codes other
than 0, EACCES and EINVAL. Such return codes result in the kernel
panicking without trying to mount root with all of the available
filesystems, as can be seen in bugzilla entries 74901 and 74261.

Make mount_block_root continue trying other available filesystems by
default, not only when the last tried returned EACCES or EINVAL.

Signed-off-by: Plamen Petrov <plamen.sisi@gmail.com>
---
init/do_mounts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/do_mounts.c b/init/do_mounts.c
index 09ded58..a4abbdf 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -403,7 +403,7 @@ retry:
case -EACCES:
flags |= MS_RDONLY;
goto retry;
- case -EINVAL:
+ default:
continue;
}
/*
--
1.9.0

\
 
 \ /
  Last update: 2014-04-28 00:01    [W:0.042 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site