From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 05 Oct 2004 15:37:12 +0000 Subject: Re: Hanging udev process on nfs-mounted /dev Message-Id: <20041005153712.GA6450@vrfy.org> 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="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Mon, 2004-10-04 at 16:53 +0200, Frank Steiner wrote: > Kay Sievers wrote >=20 > > All here known failure paths are now covered in the attached patch by > > limiting the iteration count for loops over data read from disk. Let's > > see what happens next :) >=20 > Ok :-) I'm running this patch in parallel on hosts using tmpfs for /dev > as well as "old" ones still using NFS. I will report success or failures! Nice, thanks for taking the time to investigate this. I hope we catch all these failures now. Here is the debug from the corrupt tdb-file you sent me. As expected, the concurrent writing from multiple processes on a filesystem without proper locking created an endless loop. Here is the debug with a loop over three records: 696 -> 16384 -> 18200 =3D=3D> 696 -> 16384 -> 18200 =3D=3D> ... [kay@pim ~]$ ./dumpit /home/kay/udev.tdb hash=11 rec: offseti6 next=16384 rec_len=884 key_len$ data_len=856 full_hash=3D0x= 13792fac magic=3D0x26011999 rec: offset=16384 next=18200 rec_len=884 key_len$ data_len=856 full_hash= =3D0x13792fac magic=3D0xd9fee666 rec: offset=18200 nexti6 rec_len=884 key_len$ data_len=856 full_hash=3D0x= a713efac magic=3D0x26011999 rec: offseti6 next=16384 rec_len=884 key_len$ data_len=856 full_hash=3D0x= 13792fac magic=3D0x26011999 rec: offset=16384 next=18200 rec_len=884 key_len$ data_len=856 full_hash= =3D0x13792fac magic=3D0xd9fee666 rec: offset=18200 nexti6 rec_len=884 key_len$ data_len=856 full_hash=3D0x= a713efac magic=3D0x26011999 rec: offseti6 next=16384 rec_len=884 key_len$ data_len=856 full_hash=3D0x= 13792fac magic=3D0x26011999 rec: offset=16384 next=18200 rec_len=884 key_len$ data_len=856 full_hash= =3D0x13792fac magic=3D0xd9fee666 rec: offset=18200 nexti6 rec_len=884 key_len$ data_len=856 full_hash=3D0x= a713efac magic=3D0x26011999 rec: offseti6 next=16384 rec_len=884 key_len$ data_len=856 full_hash=3D0x= 13792fac magic=3D0x26011999 rec: offset=16384 next=18200 rec_len=884 key_len$ data_len=856 full_hash= =3D0x13792fac magic=3D0xd9fee666 rec: offset=18200 nexti6 rec_len=884 key_len$ data_len=856 full_hash=3D0x= a713efac magic=3D0x26011999 rec: offseti6 next=16384 rec_len=884 key_len$ data_len=856 full_hash=3D0x= 13792fac magic=3D0x26011999 ... Thanks, Kay ------------------------------------------------------- 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