Received: by 10.223.185.116 with SMTP id b49csp210933wrg; Thu, 8 Mar 2018 15:56:48 -0800 (PST) X-Google-Smtp-Source: AG47ELtu6kNd7a2xpy1yeX3qD05woOlcHG76Vm7WRNgF4YjaIQwbLAPmnBp4CFkbuIO8DXt8hAi9 X-Received: by 10.98.214.10 with SMTP id r10mr28004304pfg.8.1520553408235; Thu, 08 Mar 2018 15:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520553408; cv=none; d=google.com; s=arc-20160816; b=dzHO5FRJdBK4jSrKPT67q5NKTuGWtVOaC/WAsXlNolHXqibPgbDX7SZ9LpdpBdv08q 20DAd1MHZ6/meng1Jfsu32USzuBmcjp9BBl0LH+sXB6rfU+SRrys0eK4tA9dEVWVzmkJ i8buYhKrzcLTVIM8Pxfq5GSg3deCGuW0k75SMg45o5sSrwoTOPvDq9JgX1VmG8kJLlyU 3pPVzB8S3bN23MuQL5rKD8WGLBo9BWyw89PMnfyJ3W4a7bPA3jUGSUt3hpsEu7vzPKp6 ky1niDn5CTNCWsvxZR8WreS9PqZ+FHcgE8TCuiLSxBcQawQ9gEXr9pzRPZI3yqC9bhZU jLVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=t79iPu5JtN/UQdT3rChQ8gfJKku2F4X4rHjMGKRJl/8=; b=xEobG9aBaJ9zH3VfnyJsOmTNFYKq2xNeyOjCITCu8uA5Bmf570V8yImgLEJJcuy3Rk nIQ6LHs/3Niuvg6lu/LTqzNdKPy+jZtTxMtBPRq7AeWSfufxg/iNSTFTfPSzgGU3m42d cB9Y37V3ywBzLwv602Gvt7T+4F7KafjOBetVj3tOBMU5N35Wz5Ni+8+8TKQrmhzKcDNO nwgUi9/R1e4N0HE7h8EQhHnpEPBqZpQR6pfZwawGDmOhnwBNGHoX/sOqzq5IlhHimYEO f7/pHz3hC1QGchEoaNhzqBngtcqoOo6ha0zt5bhvR99sodb+yI4LXE6oLBWEjBNCtxsI +sGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si15552702plr.50.2018.03.08.15.56.33; Thu, 08 Mar 2018 15:56:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852AbeCHXy7 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Mar 2018 18:54:59 -0500 Received: from mga07.intel.com ([134.134.136.100]:38166 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbeCHXy6 (ORCPT ); Thu, 8 Mar 2018 18:54:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2018 15:54:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,443,1515484800"; d="scan'208";a="22887092" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 08 Mar 2018 15:54:57 -0800 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 8 Mar 2018 15:54:57 -0800 Received: from FMSMSX109.amr.corp.intel.com ([169.254.15.144]) by fmsmsx122.amr.corp.intel.com ([169.254.5.196]) with mapi id 14.03.0319.002; Thu, 8 Mar 2018 15:54:56 -0800 From: "Dilger, Andreas" To: NeilBrown CC: "Drokin, Oleg" , Greg Kroah-Hartman , James Simmons , "Linux Kernel Mailing List" , Lustre Development List Subject: Re: [PATCH 12/17] staging: lustre: remove unused flag from ptlrpc_thread Thread-Topic: [PATCH 12/17] staging: lustre: remove unused flag from ptlrpc_thread Thread-Index: AQHTsbW7DN2UgoRlFEiiSJxjTGyqoKPHlGgA Date: Thu, 8 Mar 2018 23:54:56 +0000 Message-ID: <5E9E1F23-3BC8-4267-8B12-C1BBAF396F02@intel.com> References: <151994679573.7628.1024109499321778846.stgit@noble> <151994708545.7628.17939519532029157797.stgit@noble> In-Reply-To: <151994708545.7628.17939519532029157797.stgit@noble> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.37.249] Content-Type: text/plain; charset="us-ascii" Content-ID: <18574A9865699545BB38F9DE73F48EEC@intel.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mar 1, 2018, at 16:31, NeilBrown wrote: > > SVC_EVENT is no longer used. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/include/lustre_net.h | 11 ----------- > 1 file changed, 11 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/include/lustre_net.h b/drivers/staging/lustre/lustre/include/lustre_net.h > index 5a4434e7c85a..108683c54127 100644 > --- a/drivers/staging/lustre/lustre/include/lustre_net.h > +++ b/drivers/staging/lustre/lustre/include/lustre_net.h > @@ -1259,7 +1259,6 @@ enum { > SVC_STOPPING = 1 << 1, > SVC_STARTING = 1 << 2, > SVC_RUNNING = 1 << 3, > - SVC_EVENT = 1 << 4, > }; > > #define PTLRPC_THR_NAME_LEN 32 > @@ -1302,11 +1301,6 @@ struct ptlrpc_thread { > char t_name[PTLRPC_THR_NAME_LEN]; > }; > > -static inline int thread_is_init(struct ptlrpc_thread *thread) > -{ > - return thread->t_flags == 0; > -} > - > static inline int thread_is_stopped(struct ptlrpc_thread *thread) > { > return !!(thread->t_flags & SVC_STOPPED); > @@ -1327,11 +1321,6 @@ static inline int thread_is_running(struct ptlrpc_thread *thread) > return !!(thread->t_flags & SVC_RUNNING); > } > > -static inline int thread_is_event(struct ptlrpc_thread *thread) > -{ > - return !!(thread->t_flags & SVC_EVENT); > -} > - > static inline void thread_clear_flags(struct ptlrpc_thread *thread, __u32 flags) > { > thread->t_flags &= ~flags; > > Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation