From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbcKSKnI convert rfc822-to-8bit (ORCPT ); Sat, 19 Nov 2016 05:43:08 -0500 Received: from mga11.intel.com ([192.55.52.93]:21141 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957AbcKSKnG (ORCPT ); Sat, 19 Nov 2016 05:43:06 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,515,1473145200"; d="scan'208";a="32478659" From: "Winkler, Tomas" To: Greg Kroah-Hartman CC: "Usyskin, Alexander" , "linux-kernel@vger.kernel.org" Subject: RE: [char-misc-next 4/4] mei: bus: enable non-blocking RX Thread-Topic: [char-misc-next 4/4] mei: bus: enable non-blocking RX Thread-Index: AQHSQENvzWM3oSi0/EWhO+YdmG7q66DdLuiAgAAl8qD//+gkAIAB5fowgAC+iQCAADzgoA== Date: Sat, 19 Nov 2016 10:43:00 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B5432CA8E@hasmsx108.ger.corp.intel.com> References: <1479329490-23176-1-git-send-email-tomas.winkler@intel.com> <1479329490-23176-5-git-send-email-tomas.winkler@intel.com> <20161117153719.GA2958@kroah.com> <5B8DA87D05A7694D9FA63FD143655C1B5432B3EB@hasmsx108.ger.corp.intel.com> <20161117162744.GA20671@kroah.com> <5B8DA87D05A7694D9FA63FD143655C1B5432C477@hasmsx108.ger.corp.intel.com> <20161119084904.GA22816@kroah.com> In-Reply-To: <20161119084904.GA22816@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmNmZjJmYmItNmYwOC00ZWY4LTk0MDUtNDkyZDA0N2FkODcwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImhlMExycGtoV1RPRlV3eHA1WjBRaVc5MlwvcnBVMEFUU3oycGdBTkhWNnBZPSJ9 x-originating-ip: [10.184.70.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > On Fri, Nov 18, 2016 at 07:30:25PM +0000, Winkler, Tomas wrote: > > > > > > > > On Thu, Nov 17, 2016 at 04:22:24PM +0000, Winkler, Tomas wrote: > > > > > Just make a new function mei_cldev_recv_async() and then call a > > > > > local, static function, that does the work with the correct flag > > > > > set. That way the developer always knows exactly what is going on. > > > > > > > > We can do a wrapper, but _async() is not proper here maybe > > > > _nonblock(), > > > > > > Yes, I just guessed at the name :) > > > > Understood, any how I believe that we should keep patch as is, there > > is no one API _nonblock() function in the whole kernel unlike > > _async(), nonblock is always passed in as a flag or Boolean. > > And I'll still argue that this is a horrible api and you can do better. > No need to duplicate the errors of our childhood :) Legacy is not always wrong it as is consistency, and the balance where to put change of behavior in arguments or function names is gentle one. I'm not sure we want to end with Java function names, either. bool doesShorterNameExistThatEquallyConvaysTheBehaviorOfTheMethod() I'll respin the patch as it's not really worth the argument in this particular case, but I'm not convinced. Thanks Tomas > > thanks, > > greg k-h