linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Hanging udev process on nfs-mounted /dev
Date: Tue, 05 Oct 2004 15:37:12 +0000	[thread overview]
Message-ID: <20041005153712.GA6450@vrfy.org> (raw)
In-Reply-To: <415980BF.1020401@bio.ifi.lmu.de>

On Mon, 2004-10-04 at 16:53 +0200, Frank Steiner wrote:
> Kay Sievers wrote
> 
> > 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 :)
> 
> 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 ==> 696 -> 16384 -> 18200 ==> ...

  [kay@pim ~]$ ./dumpit /home/kay/udev.tdb
  hash\x11
  rec: offseti6 next\x16384 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0x26011999
  rec: offset\x16384 next\x18200 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0xd9fee666
  rec: offset\x18200 nexti6 rec_lenˆ4 key_len$ data_len…6 full_hash=0xa713efac magic=0x26011999
  rec: offseti6 next\x16384 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0x26011999
  rec: offset\x16384 next\x18200 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0xd9fee666
  rec: offset\x18200 nexti6 rec_lenˆ4 key_len$ data_len…6 full_hash=0xa713efac magic=0x26011999
  rec: offseti6 next\x16384 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0x26011999
  rec: offset\x16384 next\x18200 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0xd9fee666
  rec: offset\x18200 nexti6 rec_lenˆ4 key_len$ data_len…6 full_hash=0xa713efac magic=0x26011999
  rec: offseti6 next\x16384 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0x26011999
  rec: offset\x16384 next\x18200 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0xd9fee666
  rec: offset\x18200 nexti6 rec_lenˆ4 key_len$ data_len…6 full_hash=0xa713efac magic=0x26011999
  rec: offseti6 next\x16384 rec_lenˆ4 key_len$ data_len…6 full_hash=0x13792fac magic=0x26011999
  ...

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

  parent reply	other threads:[~2004-10-05 15:37 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 15:18 Hanging udev process on nfs-mounted /dev Frank Steiner
2004-09-29 17:18 ` Greg KH
2004-09-29 23:39 ` Kay Sievers
2004-09-30  2:11 ` Kay Sievers
2004-09-30  6:18 ` Frank Steiner
2004-09-30  6:21 ` Frank Steiner
2004-09-30 14:07 ` Kay Sievers
2004-10-01  6:25 ` Frank Steiner
2004-10-01  7:36 ` Kay Sievers
2004-10-01  7:38 ` Frank Steiner
2004-10-01  7:55 ` Frank Steiner
2004-10-01  8:08 ` Kay Sievers
2004-10-01  9:43 ` Frank Steiner
2004-10-01  9:57 ` Kay Sievers
2004-10-01 10:43 ` Kay Sievers
2004-10-01 22:18 ` Kay Sievers
2004-10-03 21:10 ` Frank Steiner
2004-10-03 23:07 ` Kay Sievers
2004-10-04  6:15 ` Frank Steiner
2004-10-04 14:19 ` Kay Sievers
2004-10-04 14:53 ` Frank Steiner
2004-10-05 15:37 ` Kay Sievers [this message]
2004-10-06  6:06 ` Frank Steiner
2004-10-06 12:00 ` Kay Sievers
2004-10-06 12:29 ` Frank Steiner
2004-10-08  5:59 ` Frank Steiner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041005153712.GA6450@vrfy.org \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).