Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759576AbXEJAhz (ORCPT ); Wed, 9 May 2007 20:37:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757338AbXEJAhq (ORCPT ); Wed, 9 May 2007 20:37:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:42265 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757281AbXEJAhp (ORCPT ); Wed, 9 May 2007 20:37:45 -0400 From: Neil Brown To: torvalds@linux-foundation.org Date: Thu, 10 May 2007 10:37:06 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17986.26930.952993.510918@notabene.brown> Cc: akpm@suse.de, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Cc: David Greaves , Doug Ledford Subject: Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan) X-Mailer: VM 7.19 under Emacs 21.4.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9Dbd_disk might be NULL, so bd_set_size can oops. I cannot really open the array (blkdev_get) at this point as I deadlock on mddev->reconfig_mutex. I could simply guard against bdev->bd_disk being NULL, but that is too ugly as sometimes the partitions would be found, and sometimes not. This whole approach of opening an md device before it has been assembled just seems to get more and more painful. I think I'm going to have to come up with something clever to provide both backward comparability with usage expectation, and sane integration into the rest of the kernel. Maybe if you open before the array is assembled you get a completely different bdev somehow, and on array assembly, a new bdev, or gendisk or something, gets swapped in so the next open finds it.... Anyway, if that patch can go I'd appreciate it. Thanks, NeilBrown - 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/