All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: inotify: systemd needs it so make it depend on CONFIG_EMBEDDED
@ 2015-06-19 18:07 Dave Hansen
  2015-06-19 18:18 ` Ilia Mirkin
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Hansen @ 2015-06-19 18:07 UTC (permalink / raw)
  To: dave; +Cc: dave.hansen, john, rlove, eparis, viro, torvalds, linux-kernel


From: Dave Hansen <dave.hansen@linux.intel.com>

I have a little microbenchmark that sits and does write() in a loop.
The number one kernel function in the profiles is __srcu_read_lock()
from fsnotify().  I decided to turn off INOTIFY in order to see what
the potential from optimizing this path would be.  I ended up with
a system at the rescue console as systemd complained that dependencies
were not met mounting some non-root filesystems:

	systemd: inotify_init1() failed: Function not implemented
	systemd: Dependency failed for Mark the need to relabel after reboot.
	systemd: Triggering OnFailure= dependencies of local-fs.target.
	systemd: inotify_init1() failed: Function not implemented
	systemd: Dependency failed for /gcc.

It looks like CONFIG_INOTIFY is now a critical part of any system
that wants to both use systemd and boot.  Let's make it depend
on CONFIG_EMBEDDED.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: John McCutchan <john@johnmccutchan.com>
Cc: Robert Love <rlove@rlove.org>
Cc: Eric Paris <eparis@parisplace.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org

---

 b/fs/notify/inotify/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/notify/inotify/Kconfig~make-inotify-harder-to-turn-off fs/notify/inotify/Kconfig
--- a/fs/notify/inotify/Kconfig~make-inotify-harder-to-turn-off	2015-06-19 10:54:06.528721072 -0700
+++ b/fs/notify/inotify/Kconfig	2015-06-19 10:55:16.426892530 -0700
@@ -1,5 +1,5 @@
 config INOTIFY_USER
-	bool "Inotify support for userspace"
+	bool "Inotify support for userspace" if EMBEDDED
 	select ANON_INODES
 	select FSNOTIFY
 	default y
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-22 12:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 18:07 [PATCH] fs: inotify: systemd needs it so make it depend on CONFIG_EMBEDDED Dave Hansen
2015-06-19 18:18 ` Ilia Mirkin
2015-06-19 18:54   ` Austin S Hemmelgarn
2015-06-19 21:48   ` Dave Hansen
2015-06-22 12:20     ` Austin S Hemmelgarn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.