Nick Piggin <npig...@gmail.com> wrote:

> You still have to notice that it is .d_automount in rcu-walk mode, and bail
> out if it is. I can't see where you do that.

follow_managed(), and thus follow_automount() and ->d_automount(), are never
reached in rcu_walk mode, from what I can tell of the code.

There are two places follow_managed() is called:

 (1) do_lookup() - where follow_managed() is only called in the else-part of
     an if-statement contingent on a check of LOOKUP_RCU.

 (2) do_last() - where follow_managed() is subsequent to a mutex having been
     taken, so rcu-walk mode must have been exited prior to this as the
     process may have needed to sleep.

At least, I'm assuming you may not sleep whilst in rcu-walk mode.

David

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to