login
Header Space

 
 

Re: [RFC] Re: [PATCH 4/4] autofs4 - add miscelaneous device for ioctls

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ian Kent <raven@...>
Cc: Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>, autofs mailing list <autofs@...>, linux-fsdevel <linux-fsdevel@...>, Christoph Hellwig <hch@...>, Al Viro <viro@...>
Date: Friday, March 14, 2008 - 8:45 am

* Ian Kent <raven@themaw.net> 2008-03-13 16:00

Netlink is a messaging protocol, synchronization is up to the user.

I suggest that you send a netlink notification to a multicast group for
every expire candiate when an expire request is received. Unmount
daemons simply subscribe to the group and wait for work to do. Put the
request onto a list including the netlink pid and sequence number so you
can address the orignal source of the request later on. Exit the netlink
receive function and wait for the userspace daemon to get back to you.

The userspace daemon notifies you of successful or unsuccesful unmount
attempts by sending notifications. Update your list entry accordingly
and once the request is fullfilled send a notification to the original
source of the request by using the stored pid and sequence number.

The userspace application requesting the expire can simply block on the
receival of this notification in order to make the whole operation
synchronous.

Sounds acceptable?
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] Re: [PATCH 4/4] autofs4 - add miscelaneous device ..., Thomas Graf, (Fri Mar 14, 8:45 am)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount re..., Eric W. Biederman, (Thu Feb 28, 4:33 pm)
Re: [autofs] [PATCH 3/4] autofs4 - track uid and gid of last..., Fabio Olive Leite, (Thu Feb 28, 8:31 am)
speck-geostationary