Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754647Ab0GZSLu (ORCPT ); Mon, 26 Jul 2010 14:11:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38936 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755Ab0GZSLs (ORCPT ); Mon, 26 Jul 2010 14:11:48 -0400 Date: Mon, 26 Jul 2010 20:08:34 +0200 From: Oleg Nesterov To: Sridhar Samudrala Cc: "Michael S. Tsirkin" , Peter Zijlstra , Tejun Heo , Ingo Molnar , netdev , lkml , "kvm@vger.kernel.org" , Andrew Morton , Dmitri Vorobiev , Jiri Kosina , Thomas Gleixner , Andi Kleen Subject: Re: [PATCH repost] sched: export sched_set/getaffinity to modules Message-ID: <20100726180834.GA26988@redhat.com> References: <20100701133956.GD32223@redhat.com> <4C2CA5C5.4040402@kernel.org> <20100701144624.GA11171@redhat.com> <4C2CABF2.2020801@kernel.org> <1277996135.1917.198.camel@laptop> <4C2E2987.9040702@us.ibm.com> <1278094270.1917.288.camel@laptop> <20100702210637.GA12433@redhat.com> <20100726171230.GA27644@redhat.com> <1280166688.3375.5.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1280166688.3375.5.camel@localhost> 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 Content-Length: 849 Lines: 26 On 07/26, Sridhar Samudrala wrote: > > I have been testing out a similar patch that uses kernel_thread() without CLONE_FILES > flag rather than create_kthread() and then closing the files. !CLONE_FILES can't help. copy_files() does dup_fd() in this case. The child still inherits the files. > Either version should be fine. I think neither version is fine ;) exit_files() is not enough too. How about the signals, reparenting? I already forgot all details, probably I missed somethig. But it seems to me that it is better to just export get/set affinity and forget about all complications. Oleg. -- 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/