From patchwork Wed Jun 23 02:28:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 12338849 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=-12.0 required=3.0 tests=BAYES_00,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 EE7D2C49EA4 for ; Wed, 23 Jun 2021 02:28:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D31AE613BD for ; Wed, 23 Jun 2021 02:28:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbhFWCaq (ORCPT ); Tue, 22 Jun 2021 22:30:46 -0400 Received: from mail-pj1-f50.google.com ([209.85.216.50]:54169 "EHLO mail-pj1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbhFWCap (ORCPT ); Tue, 22 Jun 2021 22:30:45 -0400 Received: by mail-pj1-f50.google.com with SMTP id bb20so609663pjb.3; Tue, 22 Jun 2021 19:28:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YO2FYV/CBlADWRAFPbHqWyT315N9xxOaN3etDaDk5fk=; b=AAACa64K6qM1/noPZvou5AJMylLVvb7mlByBJMi38Nk4KPbls0r2YXjRBn5lARI3Ld xiTQdSC5OvSGCthWXE8j1kEspeQmDOWg7YJHlK+Kxvv+iuz6z46jZ9+f3n1IRzE1peNe 7WUOrjsMPw8AxHI0GRk3l9aRJhWwzp1YzbnlY3OBgjRA1reO+gPlImQCYwBqX0aBe7Wj HW6BIgbx7dCQOQuayIm5fPbsLEgGoLto9/TCh13zeDypx/568gRuG9yp9AOQqQRuGGlM yeAd985VeTFC6yn6/rtJZbxZE5rX0jKshJkDyVgsiwzoy9541RhiyiqlsjYUcLdVFIeM hGKA== X-Gm-Message-State: AOAM530t+JMkAMY2l9qN0x8W4blNy92YNPrv5vKy7qg3GbQi2eDnlv73 CMsBU8k6X9YqN0pH6MhC2Wg= X-Google-Smtp-Source: ABdhPJwtsx7qq8gNCBfiHB/NmPKuvFA27KsN/27uwrUxTC3Kc2zfT077LNSPHxwwLrzoDT42Q1u9Vw== X-Received: by 2002:a17:902:d2c1:b029:122:ef41:c4cc with SMTP id n1-20020a170902d2c1b0290122ef41c4ccmr18194946plc.83.1624415308677; Tue, 22 Jun 2021 19:28:28 -0700 (PDT) Received: from localhost ([173.239.198.97]) by smtp.gmail.com with ESMTPSA id v6sm562083pfi.46.2021.06.22.19.28.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 19:28:27 -0700 (PDT) From: Luis Chamberlain To: bhelgaas@google.com, alex.williamson@redhat.com, cohuck@redhat.com, jgg@ziepe.ca, 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 Cc: minchan@kernel.org, gregkh@linuxfoundation.org, rafael@kernel.org, jeyu@kernel.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, mcgrof@kernel.org, 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: [PATCH v2 0/2] vfio: export and make use of pci_dev_trylock() Date: Tue, 22 Jun 2021 19:28:22 -0700 Message-Id: <20210623022824.308041-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This v2 series addreses the changes requested by Bjorn, namely: - moved the new forward declarations next to pci_cfg_access_lock() as requested - modify the subject patch for the first PCI patch Luis Chamberlain (2): PCI: Export pci_dev_trylock() and pci_dev_unlock() vfio: use the new pci_dev_trylock() helper to simplify try lock drivers/pci/pci.c | 6 ++++-- drivers/vfio/pci/vfio_pci.c | 11 ++++------- include/linux/pci.h | 3 +++ 3 files changed, 11 insertions(+), 9 deletions(-)