OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH 1/2] remove proc_mnt's use or killing inodes
Re: [RFC][PATCH 1/2] remove proc_mnt's use or killing inodes [message #17482 is a reply to message #17479] Tue, 20 February 2007 20:08 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Dave Hansen <hansendc@us.ibm.com> writes:

> We use proc_mnt as a shortcut to find a superblock on which
> to go killing /proc inodes.  This will break if we ever have
> more than one /proc superblock.  So, use the superblock list
> to go find each of the /proc sb's and kill inodes on each
> superblock.
>
> This does introduce an extra lock grab from what was there
> before, but the list should be only 1 long 99% of the time,
> and we don't exactly remove proc entries in hot paths.  Note
> that this *isn't* the path that we use to get rid of the
> actual /proc pid entries.  Those are a different beast.

Looks good. 

The only other thing we could do is turn proc/generic.c into
it's own filesystem that we mount with magic mounts like
nfs does when crossing mount points.

I think that would give us similar problems with killing inodes
when a proc entry is removed.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [patch 0/1] [RFC][net namespace] veth ioctl management
Next Topic: [RFC][PATCH 1/2] r/o bind mounts: NUMA-friendly writer count
Goto Forum:
  


Current Time: Tue Aug 19 09:10:12 GMT 2025

Total time taken to generate the page: 0.20877 seconds