From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE5EAC432C1 for ; Tue, 24 Sep 2019 04:43:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC57A2064A for ; Tue, 24 Sep 2019 04:43:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404742AbfIXEnS (ORCPT ); Tue, 24 Sep 2019 00:43:18 -0400 Received: from mga09.intel.com ([134.134.136.24]:15801 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390852AbfIXEnS (ORCPT ); Tue, 24 Sep 2019 00:43:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2019 21:43:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,542,1559545200"; d="scan'208";a="389727154" Received: from unknown (HELO ellie) ([10.252.195.153]) by fmsmga006.fm.intel.com with ESMTP; 23 Sep 2019 21:43:17 -0700 From: Vinicius Costa Gomes To: Cong Wang Cc: Linux Kernel Network Developers , Jamal Hadi Salim , Jiri Pirko , David Miller Subject: Re: [PATCH net v2] net/sched: cbs: Fix not adding cbs instance to list In-Reply-To: References: <20190924001502.22384-1-vinicius.gomes@intel.com> Date: Mon, 23 Sep 2019 21:43:16 -0700 Message-ID: <87wodyfgnv.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, Cong Wang writes: > On Mon, Sep 23, 2019 at 5:14 PM Vinicius Costa Gomes > wrote: >> @@ -417,12 +421,6 @@ static int cbs_init(struct Qdisc *sch, struct nlattr *opt, >> if (err) >> return err; >> >> - if (!q->offload) { >> - spin_lock(&cbs_list_lock); >> - list_add(&q->cbs_list, &cbs_list); >> - spin_unlock(&cbs_list_lock); >> - } >> - >> return 0; > > These two return's now can be folded into one, right? Yeah, good catch. Will fix. Cheers, -- Vinicius