mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + init-reduce-rootwait-polling-interval-time-to-5ms.patch added to -mm tree
@ 2016-12-07 20:47 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-12-07 20:47 UTC (permalink / raw)
  To: js07.lee, drzeus-list, hch, viro, mm-commits


The patch titled
     Subject: init: reduce rootwait polling interval time to 5ms
has been added to the -mm tree.  Its filename is
     init-reduce-rootwait-polling-interval-time-to-5ms.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/init-reduce-rootwait-polling-interval-time-to-5ms.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/init-reduce-rootwait-polling-interval-time-to-5ms.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Jungseung Lee <js07.lee@samsung.com>
Subject: init: reduce rootwait polling interval time to 5ms

For several devices, the rootwait time is sensitive because it directly
affects booting time.  The polling interval of rootwait is currently
100ms.  To save unnessesary waiting time, reduce the polling interval to 5
ms.

Link: http://lkml.kernel.org/r/20161207060743.1728-1-js07.lee@samsung.com
Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
Cc: Pierre Ossman <drzeus-list@drzeus.cx>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 init/do_mounts.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN init/do_mounts.c~init-reduce-rootwait-polling-interval-time-to-5ms init/do_mounts.c
--- a/init/do_mounts.c~init-reduce-rootwait-polling-interval-time-to-5ms
+++ a/init/do_mounts.c
@@ -543,6 +543,8 @@ void __init mount_root(void)
 #endif
 }
 
+#define ROOTWAIT_MSEC 5
+
 /*
  * Prepare the namespace - decide what/where to mount, load ramdisks, etc.
  */
@@ -588,7 +590,7 @@ void __init prepare_namespace(void)
 			saved_root_name);
 		while (driver_probe_done() != 0 ||
 			(ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
-			msleep(100);
+			msleep(ROOTWAIT_MSEC);
 		async_synchronize_full();
 	}
 
_

Patches currently in -mm which might be from js07.lee@samsung.com are

init-reduce-rootwait-polling-interval-time-to-5ms.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-07 20:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-07 20:47 + init-reduce-rootwait-polling-interval-time-to-5ms.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).