Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755564AbZINNY7 (ORCPT ); Mon, 14 Sep 2009 09:24:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755550AbZINNY6 (ORCPT ); Mon, 14 Sep 2009 09:24:58 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47952 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755549AbZINNYy (ORCPT ); Mon, 14 Sep 2009 09:24:54 -0400 Message-ID: <4AAE4422.4040801@suse.de> Date: Mon, 14 Sep 2009 22:24:50 +0900 From: Tejun Heo User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: Henrique de Moraes Holschuh Cc: Chris Webb , linux-scsi@vger.kernel.org, Ric Wheeler , Andrei Tanas , NeilBrown , linux-kernel@vger.kernel.org, IDE/ATA development list , Jeff Garzik , Mark Lord Subject: Re: MD/RAID time out writing superblock References: <4A970154.2020507@redhat.com> <4A9B8583.9050601@kernel.org> <4A9BBC4A.6070708@redhat.com> <4A9BC023.10903@kernel.org> <20090907114442.GG18831@arachsys.com> <20090907115927.GU8710@arachsys.com> <20090909120218.GB21829@arachsys.com> <4AADF3C4.5060004@kernel.org> <4AADF471.2020801@suse.de> <20090914131114.GA32253@khazad-dum.debian.net> In-Reply-To: <20090914131114.GA32253@khazad-dum.debian.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1818 Lines: 38 Henrique de Moraes Holschuh wrote: > On Mon, 14 Sep 2009, Tejun Heo wrote: >> Oooh, another possibility is the above continuous IDENTIFY tries. >> Doing things like that generally isn't a good idea because vendors >> don't expect IDENTIFY to be mixed regularly with normal IOs and > > IMHO that means the kernel should be special-casing such commands, then (i.e > quiesce drive, do command, quiesce driver, start IO again), probably > rate-limiting it for good effect. > > This is the kind of stuff that userspace should NOT have to worry about > (because it will get it wrong and cause data corruption eventually). If this indeed is the case (As Mark pointed out, there hasn't been any precedence involving IDENTIFY but it's also the first time I see IDENTIFY timeouts which are issued from userland), this is the kind that userspace shouldn't do to begin with. There was another similar problem. Some acpi package in ubuntu issues APM adjustment commands whenever power related stuff changes. The firmware on the drive which shipped on Samsung NC10 for some reason locks up after being hit with enough of those commands. It's just not safe to assume these kind of stuff would reliably work. If you're ready to do some research and experiments, it's fine. If you're doing OEM customization with specific hardware and QA, sure, why not (this is basically what windows OEMs do too). But, doing things which aren't _usually_ used that way repeatedly _by default_ is asking for trouble. There's a reason why these operations are root only. :-) Thanks. -- tejun -- 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/