Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LxKBj-0008Vu-AK for mharc-grub-devel@gnu.org; Fri, 24 Apr 2009 08:07:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxKBd-0008Vk-Tw for grub-devel@gnu.org; Fri, 24 Apr 2009 08:07:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxKBc-0008VQ-6L for grub-devel@gnu.org; Fri, 24 Apr 2009 08:07:20 -0400 Received: from [199.232.76.173] (port=33022 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxKBb-0008VK-03 for grub-devel@gnu.org; Fri, 24 Apr 2009 08:07:19 -0400 Received: from [74.93.104.97] (port=51426 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxKBa-00036S-Db for grub-devel@gnu.org; Fri, 24 Apr 2009 08:07:18 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id A857535C00D for ; Fri, 24 Apr 2009 05:07:10 -0700 (PDT) Date: Fri, 24 Apr 2009 05:07:10 -0700 (PDT) Message-Id: <20090424.050710.192021177.davem@davemloft.net> To: grub-devel@gnu.org From: David Miller In-Reply-To: <20090423.033314.127066528.davem@davemloft.net> References: <20090423.033314.127066528.davem@davemloft.net> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH]: grub: Don't hold raw device open when iterating down into partitions. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 12:07:22 -0000 From: David Miller Date: Thu, 23 Apr 2009 03:33:14 -0700 (PDT) > 2009-04-23 David S. Miller > > Avoiding openning same device multiple times in device iterator. > > * kern/device.c (grub_device_iterate): Define struct part_ent, > and use it to build a list of partitions in interate_disk() and > iterate_partition(). Committed.