From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753446AbbFSGr3 (ORCPT ); Fri, 19 Jun 2015 02:47:29 -0400 Received: from verein.lst.de ([213.95.11.211]:59541 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753122AbbFSGrW (ORCPT ); Fri, 19 Jun 2015 02:47:22 -0400 Date: Fri, 19 Jun 2015 08:47:21 +0200 From: Christoph Hellwig To: Mike Snitzer Cc: Vivek Goyal , dm-devel@redhat.com, Andi Kleen , linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: WARNING: at fs/block_dev.c:5 when removing LV on removed device Message-ID: <20150619064721.GA1183@lst.de> References: <20150618165713.GB19417@two.firstfloor.org> <20150618180408.GD2321@redhat.com> <20150618180804.GC19417@two.firstfloor.org> <20150618181619.GE2321@redhat.com> <20150618190815.GA6390@redhat.com> <20150618192821.GA4027@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150618192821.GA4027@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2015 at 03:28:21PM -0400, Mike Snitzer wrote: > > WARN_ON_ONCE(write_inode_now(inode, true)) > > > > If we failed to write back inode, then warning about it sounds right? > > A warning is fine.. not a WARN_ON(). Pretty alarming backtrace spew but > maybe I'm missing something and DM's blkdev refcount mgmt couldn't > trigger this WARN_ON()? I fail to see how to avoid it given the device > isn't thre so write_inode_now() fails. > > > What's wrong with that? Should it be just a kernel log of level KERN_WARN > > instead? > > Ideally, but I honestly don't have all the details paged in my head to > say definitively. First need to answer how vitrio-blk isn't hitting > this (and DM is). Could it be that __blkdev_put isn't getting called > for virtio-blk!? Just a warnings if fine. In fact we can probably remove that as well as it will happen after a hot removal all the time.