From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] locks: pass correct "before" pointer to locks_unlink_lock in generic_add_lease Date: Sat, 23 Aug 2014 04:48:18 -0700 Message-ID: <20140823114818.GA24896@infradead.org> References: <1408790179-7809-1-git-send-email-jlayton@primarydata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, bfields@fieldses.org To: Jeff Layton Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:45855 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbaHWLsT (ORCPT ); Sat, 23 Aug 2014 07:48:19 -0400 Content-Disposition: inline In-Reply-To: <1408790179-7809-1-git-send-email-jlayton@primarydata.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sat, Aug 23, 2014 at 06:36:19AM -0400, Jeff Layton wrote: > The argument to locks_unlink_lock can't be just any pointer to a > pointer. It must be a pointer to the fl_next field in the previous > lock in the list. Looks good, Reviewed-by: Christoph Hellwig This might explain some memory corruption I saw in the lease code while trying out a new creative (ab-)user of the lease code..