Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933883AbZLOWCw (ORCPT ); Tue, 15 Dec 2009 17:02:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933854AbZLOWCw (ORCPT ); Tue, 15 Dec 2009 17:02:52 -0500 Received: from 0122700014.0.fullrate.dk ([95.166.99.235]:58885 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933852AbZLOWCu (ORCPT ); Tue, 15 Dec 2009 17:02:50 -0500 Date: Tue, 15 Dec 2009 23:02:50 +0100 From: Jens Axboe To: Christian Kujau Cc: Heinz Diehl , LKML , martin.petersen@oracle.com Subject: Re: todays git regression (2.6.32-04008.g3ff6a46): lot of device mapper warnings Message-ID: <20091215220249.GG28252@kernel.dk> References: <200912091049.12604.borntraeger@de.ibm.com> <20091209212516.GA6206@fancy-poultry.org> <20091209214501.GC8742@kernel.dk> <20091209220749.GD8742@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1164 Lines: 37 On Tue, Dec 15 2009, Christian Kujau wrote: > On Wed, 9 Dec 2009 at 23:07, Jens Axboe wrote: > > Does this work? > > > [...] > > +#if 0 > > if (offset && > > (offset & (b->discard_granularity - 1)) != b->discard_alignment) { > > t->discard_misaligned = 1; > > ret = -1; > > } > > +#endif > > I can't tell: is this a purely cosmetical change or is it dangerous to run > my DM devices without that patch? I'm trying to track mainline -git but > the patch hasn't made into the tree yet, so I always have to manually > apply the patch - or can I just ignore the warning? You can ignore it, it wont harm the functionality or data integrity. The code "failure" will always trigger, since the default settings are 0. Thus: (offset & (b->discard_granularity - 1)) != b->discard_alignment will always be true. I'll revert the bad commit tomorrow so that -rc1 wont be affected, at least. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/