From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522Ab0G1Mr1 (ORCPT ); Wed, 28 Jul 2010 08:47:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62151 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772Ab0G1MrX (ORCPT ); Wed, 28 Jul 2010 08:47:23 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <18537.1280318862@redhat.com> References: <18537.1280318862@redhat.com> <20100727155023.GF1967@jolsa.brq.redhat.com> <24865.1280249187@redhat.com> To: Linus Torvalds , Jiri Olsa , "Paul E. McKenney" Cc: dhowells@redhat.com, Andrew Morton , Eric Dumazet , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH] cred - synchronize rcu before releasing cred Date: Wed, 28 Jul 2010 13:47:06 +0100 Message-ID: <32758.1280321226@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells wrote: > Yeah. I think there are three alternatives: There's a fourth alternative too: (4) I could try and make it so that if the RCU cleanup routine sees it with a non-zero usage count, then it just ignores it. This, however, would require call_rcu() to be able to cope with requeueing. David