Re: 2.6.23-rc6-mm1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Brownell
Date: Thursday, September 20, 2007 - 10:36 am

On Wednesday 19 September 2007, Andrew Morton wrote:

One key difference between any of the numerous legacy RTC drivers
and the new framework is that the legacy drivers tended to think
(wrongly!) they would be the only RTC in the system, while the
framework recognizes that other configurations are important.

Hence names "rtc0", "rtc1", "rtc2" ... etc in framework drivers,
versus just "rtc" in legacy code.  Easily tweaked with "udev" if it
matters, but current versions of "hwclock" (in util-linux and also
in busybox) don't require a /dev/rtc file any more ... they check
for /dev/rtc0, and can be told to look at other RTCs too.



Not so much an "error" as minor awkwardness.  The end result is
that only one driver will be active.



Not at all.  But if two chunks of code try to create /proc/x/y/z,
only one of them should succeed.  Today, there's a clear bug in
procfs whereby both of them will succeed...



Then nothing gets stored there; procfs is nonessential.  The same
code executes as when creating the /proc/x/y/z file fails.



But causing duplicated names doesn't need any "fix" when that code
handles the error sanely -- by using its "PROCFS=n" code paths.

If you're arguing that you think such fault handling code may have
a lot of bugs, I might agree:  not all fault handling code gets even
basic testing.  But that would seem to be nothing more than a reason
to want some code auditing (to see how common such bugs really are,
and fix at least a few of them), and perhaps to let such bugfixes sit
in a moderately well-exposed testing tree for a while.



Evidently there's no procfs maintainer ... you've said there are
patches in MM to detect and report such duplication.  What is it
turning up?



The last time I had occasion to look at such stuff I observed that procfs
users were generally sane.  If they couldn't create a file, they just
continued ... after all, procfs can never be the primary interface.



Erroring out is appropriate for fatal errors ... but procfs errors
generally can't be fatal.  (Code which uses procfs for its primary
userspace interface would be the exception.)  So most code should
never error out on such faults.

As I commented above, most code I've happend across will proceed
just fine if the extra procfs support is unavailable.  After all,
it needs to work with CONFIG_PROCFS=n so those code paths aren't
going to suddenly stop working!

- Dave

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc6-mm1, Andrew Morton, (Tue Sep 18, 1:18 am)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Tue Sep 18, 1:24 am)
Re: 2.6.23-rc6-mm1, Kamalesh Babulal, (Tue Sep 18, 2:13 am)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Tue Sep 18, 2:27 am)
Re: 2.6.23-rc6-mm1, Andy Whitcroft, (Tue Sep 18, 2:34 am)
Re: 2.6.23-rc6-mm1, Satyam Sharma, (Tue Sep 18, 2:34 am)
Re: 2.6.23-rc6-mm1, Benjamin Herrenschmidt, (Tue Sep 18, 3:02 am)
Re: 2.6.23-rc6-mm1, Kamalesh Babulal, (Tue Sep 18, 5:07 am)
Re: 2.6.23-rc6-mm1, Valdis.Kletnieks, (Tue Sep 18, 8:07 am)
Re: 2.6.23-rc6-mm1, Miles Lane, (Tue Sep 18, 8:27 am)
Re: 2.6.23-rc6-mm1, Miles Lane, (Tue Sep 18, 8:39 am)
modpost errors ( Re: 2.6.23-rc6-mm1), Gabriel C, (Tue Sep 18, 8:43 am)
Re: 2.6.23-rc6-mm1, Sam Ravnborg, (Tue Sep 18, 8:50 am)
Re: 2.6.23-rc6-mm1, Sam Ravnborg, (Tue Sep 18, 8:52 am)
Re: modpost errors ( Re: 2.6.23-rc6-mm1), Sam Ravnborg, (Tue Sep 18, 8:56 am)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Tue Sep 18, 9:53 am)
Re: 2.6.23-rc6-mm1 (watchdog), Randy Dunlap, (Tue Sep 18, 10:18 am)
Re: 2.6.23-rc6-mm1, Miles Lane, (Tue Sep 18, 10:20 am)
Re: 2.6.23-rc6-mm1 (watchdog), Randy Dunlap, (Tue Sep 18, 10:41 am)
Re: 2.6.23-rc6-mm1, Mel Gorman, (Tue Sep 18, 10:44 am)
Re: 2.6.23-rc6-mm1, Mel Gorman, (Tue Sep 18, 11:05 am)
Re: 2.6.23-rc6-mm1, Greg KH, (Tue Sep 18, 12:16 pm)
Re: 2.6.23-rc6-mm1, Greg KH, (Tue Sep 18, 12:17 pm)
Re: 2.6.23-rc6-mm1, Sam Ravnborg, (Tue Sep 18, 12:17 pm)
2.6.23-rc6-mm1 - Mostly working, with a kbuild oddity, Valdis.Kletnieks, (Tue Sep 18, 12:32 pm)
Re: 2.6.23-rc6-mm1, Miles Lane, (Tue Sep 18, 12:42 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, Rafael J. Wysocki, (Tue Sep 18, 1:21 pm)
Re: 2.6.23-rc6-mm1, Sam Ravnborg, (Tue Sep 18, 1:26 pm)
Re: 2.6.23-rc6-mm1 sparc build error, Mathieu Desnoyers, (Tue Sep 18, 1:54 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, Rafael J. Wysocki, (Tue Sep 18, 1:54 pm)
Re: 2.6.23-rc6-mm1 sparc build error, Andrew Morton, (Tue Sep 18, 2:05 pm)
Re: 2.6.23-rc6-mm1, Benjamin Herrenschmidt, (Tue Sep 18, 2:35 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Tue Sep 18, 2:37 pm)
Re: 2.6.23-rc6-mm1: atomic counter underflow, Mariusz Kozlowski, (Tue Sep 18, 2:45 pm)
Re: 2.6.23-rc6-mm1 - Mostly working, with a kbuild oddity, Valdis.Kletnieks, (Tue Sep 18, 3:03 pm)
Re: [v4l-dvb-maintainer] modpost errors ( Re: 2.6.23-rc6-mm1), Mauro Carvalho Chehab, (Tue Sep 18, 3:06 pm)
Re: 2.6.23-rc6-mm1, Gabriel C, (Tue Sep 18, 3:38 pm)
Re: 2.6.23-rc6-mm1, Gabriel C, (Tue Sep 18, 3:48 pm)
Re: 2.6.23-rc6-mm1 - Mostly working, with a kbuild oddity, Sam Ravnborg, (Wed Sep 19, 12:34 am)
Re: 2.6.23-rc6-mm1: atomic counter underflow, Cornelia Huck, (Wed Sep 19, 1:27 am)
2.6.23-rc6-mm1 -- powerpc link failure, Andy Whitcroft, (Wed Sep 19, 2:28 am)
X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Jiri Slaby, (Wed Sep 19, 4:43 am)
Re: 2.6.23-rc6-mm1 - Mostly working, with a kbuild oddity, Valdis.Kletnieks, (Wed Sep 19, 8:53 am)
2.6.23-rc6-mm1: kgdb support on ppc64 utterly broken, Mel Gorman, (Wed Sep 19, 9:29 am)
Re: 2.6.23-rc6-mm1 -- powerpc link failure, Segher Boessenkool, (Wed Sep 19, 9:36 am)
2.6.23-rc6-mm1 -- mkfs stuck in 'D', Andy Whitcroft, (Wed Sep 19, 9:43 am)
Re: 2.6.23-rc6-mm1: atomic counter underflow, Mariusz Kozlowski, (Wed Sep 19, 9:43 am)
Re: 2.6.23-rc6-mm1 -- powerpc link failure, Andy Whitcroft, (Wed Sep 19, 9:52 am)
Re: 2.6.23-rc6-mm1 - Mostly working, with a kbuild oddity, Sam Ravnborg, (Wed Sep 19, 10:39 am)
Re: 2.6.23-rc6-mm1 -- powerpc link failure, Sam Ravnborg, (Wed Sep 19, 10:44 am)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Wed Sep 19, 10:44 am)
Re: 2.6.23-rc6-mm1: atomic counter underflow, Cornelia Huck, (Wed Sep 19, 11:02 am)
Re: 2.6.23-rc6-mm1, Sam Ravnborg, (Wed Sep 19, 11:48 am)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Andrew Morton, (Wed Sep 19, 12:10 pm)
Re: 2.6.23-rc6-mm1, Sam Ravnborg, (Wed Sep 19, 12:33 pm)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Hugh Dickins, (Wed Sep 19, 1:03 pm)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Wed Sep 19, 1:32 pm)
Re: 2.6.23-rc6-mm1, Gabriel C, (Wed Sep 19, 1:36 pm)
Re: 2.6.23-rc6-mm1, Sam Ravnborg, (Wed Sep 19, 1:43 pm)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Peter Zijlstra, (Wed Sep 19, 1:44 pm)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Andrew Morton, (Wed Sep 19, 2:42 pm)
Re: 2.6.23-rc6-mm1, Tilman Schmidt, (Wed Sep 19, 4:02 pm)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Wed Sep 19, 4:24 pm)
Re: 2.6.23-rc6-mm1, Chuck Ebbert, (Wed Sep 19, 4:28 pm)
Re: 2.6.23-rc6-mm1, David Brownell, (Wed Sep 19, 4:44 pm)
Re: 2.6.23-rc6-mm1, Tilman Schmidt, (Wed Sep 19, 4:55 pm)
Re: 2.6.23-rc6-mm1, Joseph Fannin, (Wed Sep 19, 4:58 pm)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Wed Sep 19, 5:06 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Wed Sep 19, 5:06 pm)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Wed Sep 19, 5:09 pm)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Andrew Morton, (Wed Sep 19, 7:24 pm)
Re: 2.6.23-rc6-mm1, David Brownell, (Wed Sep 19, 9:43 pm)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Wed Sep 19, 11:11 pm)
Re: 2.6.23-rc6-mm1, Kay Sievers, (Thu Sep 20, 12:54 am)
Re: 2.6.23-rc6-mm1 - make access to tasks nsproxy ligther ..., Cedric Le Goater, (Thu Sep 20, 1:41 am)
Re: 2.6.23-rc6-mm1, Alessandro Zummo, (Thu Sep 20, 1:51 am)
Re: 2.6.23-rc6-mm1 - make access to tasks nsproxy ligther ..., Cedric Le Goater, (Thu Sep 20, 2:12 am)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Hugh Dickins, (Thu Sep 20, 4:31 am)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Peter Zijlstra, (Thu Sep 20, 5:15 am)
Re: 2.6.23-rc6-mm1 sparc build error, Guennadi Liakhovetski, (Thu Sep 20, 5:53 am)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Thu Sep 20, 6:17 am)
Build failure on ppc64 drivers/block/ps3disk.c, Mel Gorman, (Thu Sep 20, 6:25 am)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 6:29 am)
Re: Build failure on ppc64 drivers/block/ps3disk.c, Jens Axboe, (Thu Sep 20, 6:32 am)
Re: 2.6.23-rc6-mm1: atomic counter underflow, Cornelia Huck, (Thu Sep 20, 6:35 am)
2.6.23-rc6-mm1: Build failures on ppc64_defconfig, Satyam Sharma, (Thu Sep 20, 6:37 am)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 7:12 am)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 7:47 am)
Re: 2.6.23-rc6-mm1, David Brownell, (Thu Sep 20, 9:15 am)
Re: 2.6.23-rc6-mm1: atomic counter underflow, Pierre Ossman, (Thu Sep 20, 9:30 am)
Re: 2.6.23-rc6-mm1 - make access to tasks nsproxy ligther ..., Cedric Le Goater, (Thu Sep 20, 10:08 am)
Re: kobject: Temporarily save k_name on cleanup for debug ..., Mariusz Kozlowski, (Thu Sep 20, 10:26 am)
Re: 2.6.23-rc6-mm1: atomic counter underflow, Mariusz Kozlowski, (Thu Sep 20, 10:27 am)
Re: 2.6.23-rc6-mm1, David Brownell, (Thu Sep 20, 10:36 am)
Re: 2.6.23-rc6-mm1, Tilman Schmidt, (Thu Sep 20, 12:10 pm)
Re: 2.6.23-rc6-mm1, Tilman Schmidt, (Thu Sep 20, 12:20 pm)
Re: 2.6.23-rc6-mm1, Andrew Morton, (Thu Sep 20, 1:25 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 1:39 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 1:42 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 2:45 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 2:54 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 3:30 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Thu Sep 20, 3:35 pm)
Re: 2.6.23-rc6-mm1, Tilman Schmidt, (Thu Sep 20, 5:53 pm)
Re: [PATCH] Remove broken netfilter binary sysctls from br ..., Eric W. Biederman, (Thu Sep 20, 9:21 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Fri Sep 21, 2:24 am)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Fri Sep 21, 2:25 am)
Re: 2.6.23-rc6-mm1 sparc build error, Mathieu Desnoyers, (Fri Sep 21, 6:51 am)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Fri Sep 21, 7:20 am)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Fri Sep 21, 10:16 am)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Fri Sep 21, 10:18 am)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Fri Sep 21, 10:54 am)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Fri Sep 21, 12:20 pm)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Fri Sep 21, 12:33 pm)
Re: 2.6.23-rc6-mm1: failure to boot on HP nx6325, no sound ..., Rafael J. Wysocki, (Fri Sep 21, 12:37 pm)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Fengguang Wu, (Fri Sep 21, 6:55 pm)
Re: 2.6.23-rc6-mm1: Build failures on ppc64_defconfig, Satyam Sharma, (Fri Sep 21, 11:50 pm)
Re: 2.6.23-rc6-mm1: Build failures on ppc64_defconfig, Satyam Sharma, (Fri Sep 21, 11:51 pm)
Re: 2.6.23-rc6-mm1: Build failures on ppc64_defconfig, Satyam Sharma, (Fri Sep 21, 11:54 pm)
Re: 2.6.23-rc6-mm1: Build failures on ppc64_defconfig, Satyam Sharma, (Sat Sep 22, 12:25 am)
[PATCH -mm] iseries_veth: Kill unused variable, Satyam Sharma, (Sat Sep 22, 12:55 am)
Re: 2.6.23-rc6-mm1, Satyam Sharma, (Sat Sep 22, 1:41 am)
Re: 2.6.23-rc6-mm1, Satyam Sharma, (Sat Sep 22, 2:21 am)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Peter Zijlstra, (Sat Sep 22, 6:16 am)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Fengguang Wu, (Sat Sep 22, 6:20 pm)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Peter Zijlstra, (Sun Sep 23, 6:02 am)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Fengguang Wu, (Sun Sep 23, 8:01 pm)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Sun Sep 23, 8:25 pm)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Peter Zijlstra, (Mon Sep 24, 12:35 am)
Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1], Valdis.Kletnieks, (Mon Sep 24, 12:37 am)
Re: 2.6.23-rc6-mm1 -- mkfs stuck in 'D', Fengguang Wu, (Mon Sep 24, 1:12 am)
Re: 2.6.23-rc6-mm1, Mel Gorman, (Mon Sep 24, 4:14 am)
Re: [PATCH] Remove broken netfilter binary sysctls from br ..., Stephen Hemminger, (Mon Sep 24, 1:14 pm)
Re: 2.6.23-rc6-mm1, Greg KH, (Mon Sep 24, 10:35 pm)
Re: 2.6.23-rc6-mm1 -- powerpc link failure, Andy Whitcroft, (Tue Sep 25, 6:40 am)
Re: [PATCH] Remove broken netfilter binary sysctls from br ..., Eric W. Biederman, (Tue Sep 25, 7:03 am)
Re: [PATCH] Remove broken netfilter binary sysctls from br ..., Stephen Hemminger, (Tue Sep 25, 9:12 am)
Re: [PATCH] Remove broken netfilter binary sysctls from br ..., Eric W. Biederman, (Tue Sep 25, 9:38 am)