From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [Fwd: [PATCH]: Fix crash in virtio_blk during modprobe ; rmmod ; modprobe] Date: Fri, 23 May 2008 11:16:07 +1000 Message-ID: <200805231116.07773.rusty@rustcorp.com.au> References: <48341FC7.4060600@redhat.com> <200805222133.01686.rusty@rustcorp.com.au> <20080522113517.GC7712@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Chris Lalancette , virtualization@lists.linux-foundation.org, kvm@vger.kernel.org To: Jens Axboe Return-path: Received: from ozlabs.org ([203.10.76.45]:36375 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbYEWBQV (ORCPT ); Thu, 22 May 2008 21:16:21 -0400 In-Reply-To: <20080522113517.GC7712@kernel.dk> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Thursday 22 May 2008 21:35:19 Jens Axboe wrote: > On Thu, May 22 2008, Rusty Russell wrote: > > Thanks Chris, it seems reasonable and I'm sure it works (kinda hard to > > test here, it's my root block dev). Other drivers seem to do > > blk_cleanup_queue() *after* del_gendisk: does it matter? > > > > Jens CC'd: he's gentle with my dumb questions... Rusty. > > del_gendisk() can generate IO, so it would seem safer to do that > _before_ putting the queue reference :-) Thanks Jens. Chris, I've fixed that up here. Cheers, Rusty.