Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487Ab3JDFYI (ORCPT ); Fri, 4 Oct 2013 01:24:08 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:36903 "EHLO g1t0027.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320Ab3JDFYG (ORCPT ); Fri, 4 Oct 2013 01:24:06 -0400 Message-ID: <524DFBB1.5010101@hp.com> Date: Thu, 03 Oct 2013 17:20:17 -0600 From: Thavatchai Makphaibulchoke User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Andreas Dilger CC: T Makphaibulchoke , "Theodore Ts'o" , "linux-ext4@vger.kernel.org List" , Linux Kernel Mailing List , aswin@hp.com Subject: Re: [PATCH 0/2] fs/ext4: increase parallelism in updating ext4 orphan list References: <1380728283-61038-1-git-send-email-tmac@hp.com> <117221D9-7634-4131-95C2-7527C20F1F62@dilger.ca> In-Reply-To: <117221D9-7634-4131-95C2-7527C20F1F62@dilger.ca> 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: 1354 Lines: 33 On 10/03/2013 06:28 PM, Andreas Dilger wrote: > > It would also be possible to have a completely contention-free orphan > inode list by only generating the on-disk orphan linked list in a > pre-commit callback hook from an efficient in-memory list. That would > allow the common "add to orphan list; do something; remove from list" > operations within a single transaction to run with minimal contention, > and only the few rare cases of operations that exceed the lifetime of > a single transaction would need to modify the on-disk list. > > For example, a per-cpu list would be quite efficient, or a hash table. > Then, a jbd2 callback run before the transaction commits could modify > the requisite inodes and superblock. All of those inodes are already > (by definition) part of the transaction, so it won't add new buffers > of the transaction. > > I'm not necessarily against the current patch, just thinking aloud about > how it might be improved further. > > Cheers, Andreas > Thanks again for the suggestion. I'll rework this patch first and look into this possibility next. Thanks, Mak. -- 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/