From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753061AbbJGJj1 (ORCPT ); Wed, 7 Oct 2015 05:39:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45625 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbbJGJjZ (ORCPT ); Wed, 7 Oct 2015 05:39:25 -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: <20151005120044.GA6198@redhat.com> References: <20151005120044.GA6198@redhat.com> To: Oleg Nesterov Cc: dhowells@redhat.com, Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] change current_is_single_threaded() to use for_each_thread() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7743.1444210762.1@warthog.procyon.org.uk> Date: Wed, 07 Oct 2015 10:39:22 +0100 Message-ID: <7744.1444210762@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oleg Nesterov wrote: > Change current_is_single_threaded() to use for_each_thread() rather > than deprecated while_each_thread(). Wouldn't the old way be more efficient, given there's always going to be at least one thread? Granted, it's not much of an efficiency boost... David