Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755173Ab3F1Oyr (ORCPT ); Fri, 28 Jun 2013 10:54:47 -0400 Received: from mga09.intel.com ([134.134.136.24]:39169 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754518Ab3F1Oyq (ORCPT ); Fri, 28 Jun 2013 10:54:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,958,1363158000"; d="scan'208";a="361140353" Message-ID: <51CDA3B3.7010605@linux.intel.com> Date: Fri, 28 Jun 2013 17:54:43 +0300 From: Eliezer Tamir User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 CC: linux-kernel@vger.kernel.org, "netdev@vger.kernel.org" , Eliezer Tamir Subject: Re: [PATCH net-next 2/2] net: avoid calling sched_clock when LLS is off References: <20130628125918.14419.36214.stgit@ladj378.jer.intel.com> <20130628125934.14419.38109.stgit@ladj378.jer.intel.com> <20130628143840.GS6123@two.firstfloor.org> In-Reply-To: <20130628143840.GS6123@two.firstfloor.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1265 Lines: 32 On 28/06/2013 17:38, Andi Kleen wrote: >> diff --git a/fs/select.c b/fs/select.c >> index 79b876e..3654075 100644 >> --- a/fs/select.c >> +++ b/fs/select.c >> @@ -402,7 +402,7 @@ int do_select(int n, fd_set_bits *fds, struct timespec *end_time) >> poll_table *wait; >> int retval, i, timed_out = 0; >> unsigned long slack = 0; >> - unsigned int ll_flag = POLL_LL; >> + unsigned int ll_flag = ll_get_flag(); > > Is that a global flag? That's still the wrong level. It should > look at something in the file descriptor (preferably without > fetching any new cache lines) > There is a global flag that decides if we even try to find supported files (sockets). If it is on we look to see if anyone will return POLL_LL. at the individual socket level, you need both the socket option to be on, and the queue data to be available for it to return POLL_LL. I wanted to find a way to control this at the time the user calls poll(). I was not able to find any simple way of doing it that way. I'm open to suggestion. -- 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/