Re: [PATCH 4/8] autofs4-2.6 - to support autofs 4.1.x

From: Mike Waychison
Date: Wed Jan 28 2004 - 12:09:36 EST


raven@xxxxxxxxxx wrote:


Patch:

4-autofs4-2.6.0-test9-waitq2.patch

Adds a spin lock to serialize access to wait queue in the super block info
struct.



A while back I wrote up a patch for autofs3 that serialized waitq access and changed the waitq counters to atomic_t. I never sent it out because I had realized that the changes I made weren't needed as all waitq code-paths were running under the BKL (the big ones were ->lookup and the ioctls).

Looking briefly at autofs4, this appears to be the case as well, so this serializing probably isn't needed as long as care is made not block while walking the list.

--
Mike Waychison
Sun Microsystems, Inc.
1 (650) 352-5299 voice
1 (416) 202-8336 voice
mailto: Michael.Waychison@xxxxxxx
http://www.sun.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: The opinions expressed in this email are held by me, and may not represent the views of Sun Microsystems, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/