Re: [PATCH 1/2] mm: add context argument to shrinker callback

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Thursday, April 22, 2010 - 9:57 am

On Thu, Apr 22, 2010 at 12:42:47PM -0400, Christoph Hellwig wrote:

I don't know. It's not really caused by not registering multiple
shrinkers. It seems to be caused more by the locking, which is not
going away when you have multiple shrinkers.

The XFS patch seems to be pinning the mount structure when it is
registered, so it would have no such locking/refcounting problems
using a private list AFAIKS.



I would say less useful, because shrinker structure cannot be used
by anything but the shrinker, wheras a private list can be used by
anything, including the applicable shrinker.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] mm: add context argument to shrinker callback, Christoph Hellwig, (Sat Apr 17, 5:15 pm)
Re: [PATCH 1/2] mm: add context argument to shrinker callback, Christoph Hellwig, (Thu Apr 22, 9:32 am)
Re: [PATCH 1/2] mm: add context argument to shrinker callback, Christoph Hellwig, (Thu Apr 22, 9:42 am)
Re: [PATCH 1/2] mm: add context argument to shrinker callback, Nick Piggin, (Thu Apr 22, 9:57 am)