[PATCH] zcache: fix deadlock condition

Greg KH gregkh at suse.de
Fri Jan 27 22:18:46 UTC 2012


On Fri, Jan 27, 2012 at 03:39:28PM -0500, Konrad Rzeszutek Wilk wrote:
> On Wed, Jan 25, 2012 at 02:32:51PM -0800, Dan Magenheimer wrote:
> > I discovered this deadlock condition awhile ago working on RAMster
> > but it affects zcache as well.  The list spinlock must be
> > locked prior to the page spinlock and released after.  As
> > a result, the page copy must also be done while the locks are held.
> > 
> > Applies to 3.2.  Konrad, please push (via GregKH?)...
> > this is definitely a bug fix so need not be pushed during
> > a -rc0 window.
> 
> Looks good to me. Greg, could you apply the patch to your tree
> please? [Or would you rather I sent an GIT pull?]

I will queue it up, thanks.

greg k-h



More information about the devel mailing list