All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Carter <jimc@math.ucla.edu>
To: Ian Kent <raven@themaw.net>
Cc: autofs mailing list <autofs@linux.kernel.org>
Subject: Re: [PATCH 00/10] Kernel patch series
Date: Fri, 13 Jun 2008 18:13:03 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0806131746240.19942@simba.math.ucla.edu> (raw)
In-Reply-To: <20080612044425.25151.58126.stgit@raven.themaw.net>

On Thu, 12 Jun 2008, Ian Kent wrote:

> Here are the kernel patches I recommend we use while testing
> the submount hang problem.
> 
> Some are upstream in recent kernels while others address known
> problems. They were amde against a 2.6.24 source base but should
> apply to earlier kernels. They may not be in thier final state
> as testing is still being done.
> --snip--
> Ian Kent (8):
>       autofs4 - fix pending mount race.
>       autofs4 - use lookup intent flags to trigger mounts
>       autofs4 - don't release directory mutex if called in oz_mode
>       autofs4 - use look aside list for lookups
>       autofs4 - don't make expiring dentry negative
>       autofs4 - fix mntput, dput order bug
>       autofs4 - fix sparse warning in waitq.c:autofs4_expire_indirect()
>       autofs4 - check for invalid dentry in getpath
> 
> Jeff Moyer (2):
>       autofs4 - use struct qstr in waitq.c
>       autofs4 - fix incorrect return from root.c:try_to_fill_dentry()

Unfortunately some of the patches didn't go on cleanly.  I'm using kernel 
2.6.22.17, specifically SuSE's kernel-source-2.6.22.17-0.1 updated package 
and the "default" kernel.  Applying to a pristine copy of the source I had 
these failures:

autofs4-dont-make-expiring-dentry-negative  
    #I had to do this one by hand, but I'm pretty sure I got the right
    #locations and there were no screwups.
autofs4-use-look-aside-list-for-lookups 
    #Hunk 8 at 763: in root.c in autofs4_dir_symlink 
    #after inode = autofs4_get_inode(dir->i_sb, ino); at 698 and ENOMEM 
    #test my source (outside the patch) has d_instantiate(dentry, inode); 
    #yours has d_add(dentry, inode);  I did not make this change.
    #Hunk 12 at 914 in autofs4_dir_mkdir
    #Identical code; I left this one alone also.

In addition, there was a compilation error, an instance of "unhashed", 
which I changed to "expiring".  This was in root.c in autofs4_lookup at
552, in the if(expiring) block, it said dentry = unhashed (which is 
undefined) and I changed it to dentry = expiring.  

Surely one of these hacks was a misjudgment.  After I stopped the daemon, 
removed the module, installed the new module, and restarted the daemon,
on the first attempt to automount something (all my automounts involve 
submounts), it complained in syslog:

Jun 13 17:40:14 serval automount[11652]: do_mount_autofs_indirect: failed 
    to mount autofs path /net/julia
Jun 13 17:40:14 serval automount[11652]: rmdir_path: lstat of /net/julia 
    failed
Jun 13 17:40:14 serval automount[11652]: handle_mounts: mount of /net/julia 
    failed!
Jun 13 17:40:14 serval automount[11652]: mount_mount: mount(autofs): failed 
    to create submount for /net/julia

(This was repeated every few seconds, likely because my shell was statting 
this dir repeatedly.)  When I stopped the daemon I got a kernel panic.

Likely there's no point debugging this -- blame it on version skew.  And of 
course it's going to take some digging to find out for sure just which 
patches have been applied to these kernel sources.  How do you suggest we 
proceed?  

Aw, crap, I removed the patched module, did depmod -a (the original module 
is still there), and rebooted the test machine.  It doesn't seem to want to 
come up, and I'm working from home...  

James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 520 Portola Plaza; Los Angeles, CA, USA  90095-1555
Email: jimc@math.ucla.edu    http://www.math.ucla.edu/~jimc (q.v. for PGP key)

  parent reply	other threads:[~2008-06-14  1:13 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12  4:50 [PATCH 00/10] Kernel patch series Ian Kent
2008-06-12  4:50 ` [PATCH 01/10] autofs4 - check for invalid dentry in getpath Ian Kent
2008-06-12  4:50 ` [PATCH 02/10] autofs4 - fix sparse warning in waitq.c:autofs4_expire_indirect() Ian Kent
2008-06-12  4:50 ` [PATCH 03/10] autofs4 - fix incorrect return from root.c:try_to_fill_dentry() Ian Kent
2008-06-12  4:51 ` [PATCH 04/10] autofs4 - fix mntput, dput order bug Ian Kent
2008-06-12  4:51 ` [PATCH 05/10] autofs4 - don't make expiring dentry negative Ian Kent
2008-06-12  4:51 ` [PATCH 06/10] autofs4 - use look aside list for lookups Ian Kent
2008-06-12  4:51 ` [PATCH 07/10] autofs4 - don't release directory mutex if called in oz_mode Ian Kent
2008-06-12  4:51 ` [PATCH 08/10] autofs4 - use lookup intent flags to trigger mounts Ian Kent
2008-06-12  4:51 ` [PATCH 09/10] autofs4 - use struct qstr in waitq.c Ian Kent
2008-06-12  4:51 ` [PATCH 10/10] autofs4 - fix pending mount race Ian Kent
2008-06-14  1:13 ` Jim Carter [this message]
2008-06-14  3:30   ` [PATCH 00/10] Kernel patch series Ian Kent
2008-06-14  3:42     ` Ian Kent
2008-06-19  0:40       ` clients suddenly start hanging (was: (no subject)) Jim Carter
2008-06-19  3:14         ` Ian Kent
2008-06-19 17:08           ` Jim Carter
2008-06-19 18:34           ` Jim Carter
2008-06-20  4:09             ` Ian Kent
2008-06-21  1:02               ` Jim Carter
2008-06-21  3:12                 ` Ian Kent
2008-06-23  3:49                   ` Jim Carter
2008-06-23  4:46                     ` Ian Kent
2008-06-24  3:08                       ` Ian Kent
2008-06-24 17:02                         ` Stephen Biggs
2008-06-24 23:39                         ` Jim Carter
2008-06-25  3:33                           ` Ian Kent
2008-06-25  5:00                             ` Ian Kent
2008-06-23  4:15                   ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2008-04-23 18:50 (no subject) Jim Carter
2008-04-23 20:04 ` Jeff Moyer
2008-04-24  3:10   ` Ian Kent
2008-04-24 16:52   ` clients suddenly start hanging (was: (no subject)) Jim Carter
2008-04-26  1:17   ` Jim Carter
2008-04-26  5:34     ` Ian Kent
2008-04-26 18:48       ` Jim Carter
2008-04-27  5:52         ` Ian Kent
2008-04-26 22:16       ` Jim Carter
2008-04-28  6:26 ` [PATCH 1/2] autofs4 - fix execution order race in mount request code Ian Kent
2008-05-08  4:52   ` clients suddenly start hanging (was: (no subject)) Jim Carter
2008-05-08  6:13     ` Ian Kent
2008-05-11  4:14       ` Jim Carter
2008-05-11  7:57         ` Ian Kent
2008-05-15 21:59           ` Jim Carter
2008-05-16  3:00             ` Ian Kent
2008-05-18  4:07             ` Ian Kent
2008-05-21  6:58               ` Ian Kent
2008-05-22 21:42               ` Jim Carter
2008-05-23  2:35                 ` Ian Kent
2008-05-26  0:34                   ` Jim Carter
2008-06-12  3:20                     ` Ian Kent

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=Pine.LNX.4.64.0806131746240.19942@simba.math.ucla.edu \
    --to=jimc@math.ucla.edu \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.net \
    /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 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.