Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp933967imm; Fri, 5 Oct 2018 14:34:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV601HTOb2hBQB+mZKwaAzLoZc9naa3dcuAmJXBOTWz9GABbbwEE971QNHSxQ6aXz9p3gIygW X-Received: by 2002:a62:9f11:: with SMTP id g17-v6mr13609617pfe.144.1538775260676; Fri, 05 Oct 2018 14:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538775260; cv=none; d=google.com; s=arc-20160816; b=VxDocEBQ1l++2RUuLu9B1qWBegHLuIxy/P5FecCdLa0718EIXHPNFlzenWIztjet1p lOpSChgDEX2IFFh6QE0k9sLV+CFpN/kEBy7TlPG+EwcD9aE+sfkB3CgAJETjavPp7yMj GMrhBxx0aKxiWiCKSxCGiiRqi5orkGHM2YHAz+GoteukB4oH0cY2AYnEs8NW7ly/kRFn ei8Qz8VWCXnGpaIiAZ+0T6RWAiXBPDZkFJlyIY0BMDATXori1vYt3GEOyBbPOOy14VVf ldgBDEG3efrtDS6IkboEZorhp5EjlG000DGlC9lLV4ggU0PnRGr/59mmjZdsJqHZcSTe djxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=8ObuuvvvXtGg5bwj7iAXyMx+94GopRUXeWqLMgx69sI=; b=zbvIYQKoZPNc0tyHLRnJ7+I8wQ811LMJYmKgeDli3pNrC/UWesejtqr3KLvti+0qeC uEVpU/F4L/71OKWPKXnkfjAk2hjg4nlkMOemwLgOcAP5XIPD7Zi7Yl4etuRzPWi4aN+w zm6F8mLlcyDndwMujTP/52OFpR70G3GmwtR/Xbnl1ZG6CKpLAdiZeF9r9fURB6JoBOVM QI2F6EzTyLPWQ+AQ2vBbyvS4Dj/8ndAb/y9FgYfyXmsKSFI1LUW/ZrLhul4ioPn+1wV2 eKjOecPYV+ElBRabty3X4SGfAdvpmTU+ezdB8TZQ9p+lkcVM6e4ux/F6Ypw/FWGCogZk P0Cw== 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 d7-v6si9572733pll.162.2018.10.05.14.34.05; Fri, 05 Oct 2018 14:34:20 -0700 (PDT) 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 S1729004AbeJFEdL (ORCPT + 99 others); Sat, 6 Oct 2018 00:33:11 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:46692 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbeJFEdL (ORCPT ); Sat, 6 Oct 2018 00:33:11 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:1c06::4572]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 0E3DD13ADF961; Fri, 5 Oct 2018 14:32:37 -0700 (PDT) Date: Fri, 05 Oct 2018 14:32:36 -0700 (PDT) Message-Id: <20181005.143236.511366748709139149.davem@davemloft.net> To: ldr709@gmail.com Cc: linux-kernel@vger.kernel.org, paulmck@linux.ibm.com, 3chas3@gmail.com, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org Subject: Re: [PATCH] atm: nicstar: Replace spin_is_locked() with spin_trylock() From: David Miller In-Reply-To: <20181004074657.17597-1-ldr709@gmail.com> References: <20181004074657.17597-1-ldr709@gmail.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 05 Oct 2018 14:32:37 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lance Roy Date: Thu, 4 Oct 2018 00:46:57 -0700 > ns_poll() used spin_is_locked() + spin_lock() to get achieve the same > thing as a spin_trylock(), so simplify it by using that instead. This is > also a step towards possibly removing spin_is_locked(). > > Signed-off-by: Lance Roy Applied to net-next.