On Fri, 4 May 2007, William Lee Irwin III wrote:
> kick_object() doesn't return an indicator of success, which might be
> helpful for determining whether an object was successfully removed. The
> later-added kick_dentry_object(), for instance, can't remove dentries
> where reference counts are still held.
>
> I suppose one could check to see if the ->inuse counter decreased, too.
Yes that is exactly what is done. The issue is that concurrent frees may
occur. So we just kick them all and see if all objects are gone at the
end.
> In either event, it would probably be helpful to abort the operation if
> there was a reclamation failure for an object within the slab.
Hmmm... The failure may be because another process is attempting
a kmem_cache_free on an object. But we are holding the lock. The free
will succeed when we drop it.
> This is a relatively minor optimization concern. I think this patch
> series is great and a significant foray into the problem of slab
> reclaim vs. fragmentation.
Thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]