Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756225AbXJCNEZ (ORCPT ); Wed, 3 Oct 2007 09:04:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753365AbXJCNER (ORCPT ); Wed, 3 Oct 2007 09:04:17 -0400 Received: from [122.1.235.145] ([122.1.235.145]:64543 "EHLO smtp.wine.ocn.ne.jp" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752593AbXJCNEQ (ORCPT ); Wed, 3 Oct 2007 09:04:16 -0400 To: jmorris@namei.org Cc: linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, chrisw@sous-sol.org Subject: Re: [TOMOYO 05/15](repost) Domain transition handler functions. From: Tetsuo Handa References: <200710022144.BFF09817.VFFOOJLSFHtQMO@I-love.SAKURA.ne.jp> <200710032024.DJF78662.FHOLtMSFOOFJVQ@I-love.SAKURA.ne.jp> <20071003.204356.05853536.yoshfuji@linux-ipv6.org> In-Reply-To: Message-Id: <200710032204.DFF51552.OFOSOFMVQtHLJF@I-love.SAKURA.ne.jp> X-Mailer: Winbiff [Version 2.50 PL2] X-Accept-Language: ja,en Date: Wed, 3 Oct 2007 22:04:11 +0900 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 671 Lines: 20 James Morris wrote: > I'm pretty sure that the singly linked list idea has been rejected a few > times. Just use the existing API. Too bad... Well, is there a way to avoid read_lock when reading list? Currently, TOMOYO Linux avoids read_lock, on the assumption that (1) First, ptr->next is initialized with NULL. (2) Later, ptr->next is assigned non-NULL address. (3) Assigning to ptr->next is done atomically. Regards. - 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/