Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754037AbZDNHxT (ORCPT ); Tue, 14 Apr 2009 03:53:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751676AbZDNHxG (ORCPT ); Tue, 14 Apr 2009 03:53:06 -0400 Received: from hera.kernel.org ([140.211.167.34]:51943 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbZDNHxF (ORCPT ); Tue, 14 Apr 2009 03:53:05 -0400 Message-ID: <49E440D9.4020803@kernel.org> Date: Tue, 14 Apr 2009 16:52:57 +0900 From: Tejun Heo User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Daniel Collins CC: linux-kernel@vger.kernel.org Subject: Re: 2.6.28 /proc/diskstats References: <49E13D18.2090805@solemnwarning.net> In-Reply-To: <49E13D18.2090805@solemnwarning.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Tue, 14 Apr 2009 07:53:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 26 Daniel Collins wrote: > Hi > > Since 2.6.28, fd0 isn't visible in /proc/diskstats from boot, only after > access/mount. It is visible in /sys/block/ from boot, so there are no > issues detecting it. This may also affect other devices such as hda but > I haven't tested this yet, my test system and QEMU both only have > ram0-ram15 from boot. I have tested 2.6.30-rc1 and found the same > behavior. Is this a bug or a deliberate change? Hmm... the reason why fd device is skipped before the first open is because diskstats_show() skips zero sized devices and open is when the floppy driver sets the capacity. I think the original code also skipped zero sized device. It could be that the original code triggered revalidation while the current one doesn't. I'll dig deeper. 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/