Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753754AbZJ1OH3 (ORCPT ); Wed, 28 Oct 2009 10:07:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753513AbZJ1OH2 (ORCPT ); Wed, 28 Oct 2009 10:07:28 -0400 Received: from brick.kernel.dk ([93.163.65.50]:40832 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbZJ1OH1 (ORCPT ); Wed, 28 Oct 2009 10:07:27 -0400 Date: Wed, 28 Oct 2009 15:07:31 +0100 From: Jens Axboe To: Jiri Kosina Cc: Pavel Machek , kernel list Subject: Re: 2.6.32-rc5: surprise removal of USB mass storage, and whole system goes to hell Message-ID: <20091028140731.GP10727@kernel.dk> References: <20091027211951.GA21967@elf.ucw.cz> <20091028095537.GD10727@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091028095537.GD10727@kernel.dk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1363 Lines: 41 On Wed, Oct 28 2009, Jens Axboe wrote: > On Wed, Oct 28 2009, Jiri Kosina wrote: > > On Tue, 27 Oct 2009, Pavel Machek wrote: > > > > > I did remove one harddrive w/o unmounting, and now the whole system > > > becomes unusable :-(: (whole dmesg attached). > > > > > > Stuff like "sync" hangs, and I'll probably have to reboot soon. > > > > From the traces it seems that it might be related to the new per-bdi > > writeback stuff ... adding Jens to CC. > > It looks like the IO isn't being errored on the device side, or perhaps > it just got stuck. Pavel, if you can reproduce, please try with this > tracing patch. Apply it, and then do something ala: > > # cd /sys/kernel/debug/tracing > # echo 0 events/enable > # echo 1 events/writeback/enable > # echo 0 > trace > > then start the act of reproducing, and finally > > # cat trace > /tmp/foo > > and send the output of foo here. Thanks! I can reproduce this. The writeback work gets queued, we notice the task isn't there and wake up the default task. And then nothing happens, I wonder if the bdi is gone. I'll fiddle around with this. -- 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/