From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Steiner Date: Fri, 08 Oct 2004 05:59:43 +0000 Subject: Re: Hanging udev process on nfs-mounted /dev Message-Id: <41662CCF.3010307@bio.ifi.lmu.de> List-Id: References: <415980BF.1020401@bio.ifi.lmu.de> In-Reply-To: <415980BF.1020401@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi Kay, with version 04 of your deadlock patch, the three hosts which still use /dev over nfs have now been rebooting in a loop (rebooting every 5 minutes with extra, parallel udevstart calls) for two days without any lockups. The same rebooting mechanism reliably locked them up in all the former tests, so I guess that all possible deadlocks (at least those caused by non-locking NFS) are fixed! I see all the warnings in the logs, so I can tell that the deadlock situations happen a few times a day, but patch unbreaks them all. So I guess you can make it final. The hosts running tmps didn't have any problems at all, with or without the patch. Just a minor problem: With the deadlock patch I can't compile udev with "USE_LOG=FAlse DEBUG=FAlse". I fixed that by putting an #ifdef around, i.e., +static void tdb_log(TDB_CONTEXT *tdb, int level, const char *format, ...) +{ + va_list args; + + if (!udev_log) + return; + +#ifdef LOG + va_start(args, format); + vsyslog(level, format, args); + va_end(args); +#endif +} Not sure if that makes any sense except making it compile, but you will know better :-) Thanks again for all your help and consistent patching :-) cu, Frank --=20 Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel