[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120109172707.GW23916@ZenIV.linux.org.uk>
Date: Mon, 9 Jan 2012 17:27:07 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Miklos Szeredi <miklos@...redi.hu>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
mgorman@...e.de, gregkh@...e.de, hch@...radead.org,
akpm@...ux-foundation.org, torvalds@...ux-foundation.org
Subject: Re: [RFC PATCH] shrink_dcache_parent() deadlock
On Mon, Jan 09, 2012 at 11:58:54AM +0100, Miklos Szeredi wrote:
> This patch adds a new dentry flag that is set when the dentry is removed
> from the lru and put on the list being processed by
> shrink_dentry_list(). The flag is cleared in dentry_lru_del() which is
> called if the dentry gets a new reference just before it's pruned.
Umm... In principle, I like that variant, provided that you send it with
sane commit message. Explicit description of the conditions when new
flag is set will probably turn out to be very useful several months down
the road, so... Unless I'm misreading you, it should be something along
the lines of "flag is set if and only if dentry->d_lru is currently a part of
tmp cyclic list of some ongoing __shrink_dcache_sb() instance", preferably
without torturing the langauge so much...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists