Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932332AbbFRSQ3 (ORCPT ); Thu, 18 Jun 2015 14:16:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44685 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbbFRSQU (ORCPT ); Thu, 18 Jun 2015 14:16:20 -0400 Date: Thu, 18 Jun 2015 14:16:19 -0400 From: Mike Snitzer To: Andi Kleen Cc: dm-devel@redhat.com, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: WARNING: at fs/block_dev.c:5 when removing LV on removed device Message-ID: <20150618181619.GE2321@redhat.com> References: <20150618165713.GB19417@two.firstfloor.org> <20150618180408.GD2321@redhat.com> <20150618180804.GC19417@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150618180804.GC19417@two.firstfloor.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1779 Lines: 48 On Thu, Jun 18 2015 at 2:08pm -0400, Andi Kleen wrote: > > Hmm, so you have a filesystem active on it too? > > I unmounted it before. > > > > > > Also the VG removal did not work of course. > > > > Once you resolve the filesystem piece, from vgremove man page: > > > > "vgremove allows you to remove one or more volume groups. If one or > > more physical volumes in the volume group are lost, consider vgreduce > > --removemissing to make the volume group metadata consistent again." > > Well in any case there should not be WARN()s. Yes well I don't even know what WARN_ON you're hitting. You're running a 4.0.4 fedora kernel. Which WARN_ON() is triggering? The WARN_ON_ONCE() in bdev_write_inode()? -- likely since the only caller of bdev_write_inode is __blkdev_put... /** * write_inode_now - write an inode to disk * @inode: inode to write to disk * @sync: whether the write should be synchronous or not * * This function commits an inode to disk immediately if it is dirty. This is * primarily needed by knfsd. * * The caller must either have a ref on the inode or must have set I_WILL_FREE. */ So I have no idea why bdev_write_inode() is using WARN_ON_ONCE.. makes since that write_inode_now() will fail if the disk no longer exists. SO the WARN_ON_ONCE seems misplaced. Git blame shows its all hch's fault: 564f00f6c (Christoph Hellwig 2015-01-14 10:42:33 +0100 57) WARN_ON_ONCE(write_inode_now(inode, true)); 564f00f6c block_dev: only write bdev inode on close -- 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/