From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932096Ab2DSRfX (ORCPT ); Thu, 19 Apr 2012 13:35:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40406 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755562Ab2DSRfW (ORCPT ); Thu, 19 Apr 2012 13:35:22 -0400 Date: Thu, 19 Apr 2012 19:34:31 +0200 From: Oleg Nesterov To: David Howells Cc: Andrew Morton , Linus Torvalds , Thomas Gleixner , Alexander Gordeev , Chris Zankel , David Smith , "Frank Ch. Eigler" , Geert Uytterhoeven , Larry Woodman , Peter Zijlstra , Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/3] cred: change keyctl_session_to_parent() to use task_work_add() Message-ID: <20120419173431.GA27066@redhat.com> References: <20120417193409.GA20312@redhat.com> <20120414021252.GC23393@redhat.com> <20120414021201.GA23385@redhat.com> <27037.1334672580@redhat.com> <20120417163606.GC14527@redhat.com> <23383.1334854333@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23383.1334854333@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/19, David Howells wrote: > > Oleg Nesterov wrote: > > > +#define key_replace_session_keyring() do { } while (0) > > + > > Ummm... Why? You've made the function no longer exist and so this shouldn't be > there anymore. You shouldn't just leave the call sites in place. Sure! I'll send the (trivial) patches to cleanup the code in arch/ (24 callers), plus we should kill the no longer used task ->replacement_session_keyring and update copy_creds/exit_creds. But I certainly do not want to put these changes in 3/3 or in this series. I'll send the patches to Andrew once (I hope ;) he takes 1-3. Oleg.