Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5900342pxj; Wed, 23 Jun 2021 11:21:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzonXHx2JGltAmEKzI5xrvRHejyFL3CIOglFGUsUo50VJwe+VbDhV44BgmMu+fAC+vnhLwZ X-Received: by 2002:a17:906:c822:: with SMTP id dd2mr1452370ejb.474.1624472518007; Wed, 23 Jun 2021 11:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624472518; cv=none; d=google.com; s=arc-20160816; b=yWAxUidWdS7j2h+l/jDjBaY10CzEHj4UE57xhl5g2Gbb2CUO8LCe8icQTt+ueDukF+ 5YGVv/6yKH3Qe3SW5TrRKbKzzeyNbu0Bne4mEkrJAkruQ+0vRMMbEvn3P6oAnt4cVHNF nmW92VtnbSoBPYBJuONpBmzlRIrkcfvNd7qbPRw7Rpjp3H6DaSbcJ4G2FXYxRWkc3qKR 85vG5kveKXKpDh/7GN8mgCPwKtTwShBRHkcY7X2VrGlITW+nQ2UiKqntDGFp8zE5z2ef W22W/P1qGBOKeWpUg+rikUoqwCsnrW2Ir2yH9N6RDOrwzSYLpy0TO9mN/pem4f/riXvH +XVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jl8pbJWalrLhIBlNXOVoQQE4IHG/JvIijc85CtgYeeo=; b=gf4diD6vPC+tvJ8T04qEfahGd96lbIRQCsundSmbeO8z/jgYaH+kGO8H6s5NokbabS qm1r4fe+frGt1JAHd04kcXS+6kpvg+4tSWtIYQq33NdJQ727emad5t/hwtKBBst6AGrF AaOTTkFDFvM1vnFG0cb7KA77N8lU2IKgiyEXmndKfYtW6EMW1FE0bDgaCMRI8BVzyTSj Zw7k3ABWJgeUDbNGIVCW8w3NHcaJiT9HGw3MqRi5emmtML+q58TFjeKG4NTQMxri0Krk G8YURB0r0FBoqnr1AN4u2J1HJN87vklOa0Ym9xkkn7jh41ddp8LlTp6YpB3DMrrcpW5Z 3hKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=O9TJXI61; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l25si522043edq.261.2021.06.23.11.21.34; Wed, 23 Jun 2021 11:21:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=O9TJXI61; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbhFWSWj (ORCPT + 99 others); Wed, 23 Jun 2021 14:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbhFWSWi (ORCPT ); Wed, 23 Jun 2021 14:22:38 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B8D0C061574 for ; Wed, 23 Jun 2021 11:20:21 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id j184so7597988qkd.6 for ; Wed, 23 Jun 2021 11:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jl8pbJWalrLhIBlNXOVoQQE4IHG/JvIijc85CtgYeeo=; b=O9TJXI61AW9H2nQtUEnlSBFAPp1Dbm0DFWyvVQzfD/PJICtcInbflOVhVjNXaZC+/A P5oHFmIKwbl6pOHIftFzPCxPDeh1x/lKRVvMsGHK9UZml3jK2tnIowXHThpv5UVtE+Sm 5cLMhWY0zpTFvHpTYfr1AbjnBxpwd81+C7RPncszrI4askcQTsqjuNBSpGs42/FuYOUR Zo1Jsaxs5PUHdvj03/RI59F2gWk6fh+bkxwXwGg+BUd0Fx0z6y8O2HdfuaUyv4OWvRWt P1LDggXBACdgJJyoF+/8c2wmxP4OmrriRa/T9WiPUOMz7uGWEHZKMmmYOJhGWbGV+5kQ mXTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jl8pbJWalrLhIBlNXOVoQQE4IHG/JvIijc85CtgYeeo=; b=VivjFR+5Fr3G8ZXYLZ0gukhsICN8P9jh2V/my+VUbWqVepAEogBZf/L/pWwCH1QHvM Hcr0yZ42voEwuGYzTiAwzn1MgbBvliWpsO7DY3VWFW8e/ytcOInGlnLDpWQaqHFEm35e 9uTAAOj33EKB42U4JSRAJBySkd5QzhQ2yhPrtfcp3+4FxgNLKY/FphT+/ITw9FEmFu5q gfiT280fTJnzzoHBvhANT7QwSopWsvqUiASOTzx3tiKdHqfntjBQSpucjbvitiaT4gOT Kv9r3bTLThDoygqxJtn/llbC7Dq2bVixIma6s8UYVv6bCBZej3SubFgH+MvZKZ3am0MA Ny2g== X-Gm-Message-State: AOAM531JzbEfMaKrRMP0j6pQ9saPFGJO4yOTLBjraxGZ0+jC7jiQrSpj HIhzvkp04z4GjXboT4ry9Ro7ng== X-Received: by 2002:ae9:c219:: with SMTP id j25mr1367484qkg.313.1624472420239; Wed, 23 Jun 2021 11:20:20 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-47-55-113-94.dhcp-dynamic.fibreop.ns.bellaliant.net. [47.55.113.94]) by smtp.gmail.com with ESMTPSA id x19sm474843qtp.58.2021.06.23.11.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 11:20:19 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lw7U3-00BlBX-5u; Wed, 23 Jun 2021 15:20:19 -0300 Date: Wed, 23 Jun 2021 15:20:19 -0300 From: Jason Gunthorpe To: Luis Chamberlain Cc: bhelgaas@google.com, alex.williamson@redhat.com, cohuck@redhat.com, kevin.tian@intel.com, eric.auger@redhat.com, giovanni.cabiddu@intel.com, mjrosato@linux.ibm.com, jannh@google.com, kvm@vger.kernel.org, linux-pci@vger.kernel.org, schnelle@linux.ibm.com, minchan@kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org, jeyu@kernel.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, axboe@kernel.dk, mbenes@suse.com, jpoimboe@redhat.com, tglx@linutronix.de, keescook@chromium.org, jikos@kernel.org, rostedt@goodmis.org, peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] vfio: use the new pci_dev_trylock() helper to simplify try lock Message-ID: <20210623182019.GW1096940@ziepe.ca> References: <20210623022824.308041-1-mcgrof@kernel.org> <20210623022824.308041-3-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210623022824.308041-3-mcgrof@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 07:28:24PM -0700, Luis Chamberlain wrote: > Use the new pci_dev_trylock() helper to simplify our locking. > > Signed-off-by: Luis Chamberlain > --- > drivers/vfio/pci/vfio_pci.c | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) Reviewed-by: Jason Gunthorpe Jason