From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kara Subject: Re: WARNING: at fs/fs-writeback.c when plug out SD card after system suspend/resume Date: Thu, 4 Dec 2014 15:31:12 +0100 Message-ID: <20141204143112.GA15657@quack.suse.cz> References: <20141204124139.GC8569@quack.suse.cz> <20141204140835.GA15108@quack.suse.cz> <20141204141625.GA15219@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kara , Ulf Hansson , Dong Aisheng , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" , Dong Aisheng-B29396 , r64343@freescale.com To: Tejun Heo Return-path: Content-Disposition: inline In-Reply-To: <20141204141625.GA15219@htj.dyndns.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu 04-12-14 09:16:25, Tejun Heo wrote: > Hello, > > On Thu, Dec 04, 2014 at 03:08:35PM +0100, Jan Kara wrote: > > Yeah, but for the filesystem on top it doesn't really matter. Filesystems > > simply don't expect underlying structures can disappear. Changing all > > filesystems to deal with that would be too difficult so we have to make bdi > > stay in memory as needed and just detach it from the device (request queue) > > which goes away. > > Wouldn't it be better to concentrate lifetime management to > request_queue instead of inserting another severance layer between bdi > and request_queue? Maybe, I didn't seriously look into what would the best solution be. I trust Christoph to find a good solution for it :) Honza -- Jan Kara SUSE Labs, CR