[lkml]   [2009]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] proc 1/6: implement support for automounts in task directories
Alexey Dobriyan <> writes:

> I don't have a lot of opinion on this bug. I checked patchset to fix known
> reproducer, timeout is obviously taken out of air and not nice.

As for timeout. The logic is that mark_mounts_for_expiry is just an
aging mechanism, and if something is actually in use it is not aged out.

In the general case the call to proc_shrink_automounts in
kernel/exit.c will clean up everything. It is possible but unlikely
in practice that someone will pin a lot of process directories open
then stop pinning them, and after that point nothing will remain open,
so we close that hole.

I set timeout huge because it should never be needed in real life.

That said I'm up for taking this as a starting point and generalizing
the mechanisms in fs/namespace.c. So I don't need a timeout at all,
but that is an orthogonal discussion.


 \ /
  Last update: 2009-03-31 01:13    [W:0.028 / U:7.132 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site