Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5497503pxj; Wed, 23 Jun 2021 02:32:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdtb/ZsnLNzOICG3YKWJv6lwqh+JqftXxLvIG1cFJaVF/2q+nusIGjJS+g4/QTBaGSz6UB X-Received: by 2002:a92:260c:: with SMTP id n12mr2182726ile.138.1624440759130; Wed, 23 Jun 2021 02:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624440759; cv=none; d=google.com; s=arc-20160816; b=BA2QiTTBMkikTlpKCFXMpAbvMM0pagkrUVw9klshMtC9+h492VxHlD5if0oZbpAxiL 2RAeQmF/OQFtJNUumaPEFukJKQRE43P6dgJ5OsZxre11uGqEFL0LiVxy46QM5bohvFbl f6JLzZs0gr9jQ7mmh7ji0B7gby2Uiyev3A0D2PKNJQhUEumWX/iIb3xHQFKYWCDVPPAF IvdZuiB1Jtp7ZtdILpGmtYV36BzzkdHuxqpO7bJyrbu7et/0GRlX5M9qmkVEkLSsdqKD nDBEmZT0M69JNzjfNhKPtSgfoY+phClyvEB2qmD1VMIvgLtoWGjkHyW7rHKyRqXAsqTE GBOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:organization:in-reply-to:subject:cc:to:from :dkim-signature; bh=uoKxP6WJfMKdvV/ri4cCRJHkTaSzfh+UYio6Jvz7jjE=; b=UhkD240WIGVDbrM+H43dsbpJ2i+3vCo6899abUUq1EClO4CE0P5uWZyA6Ml/TYre06 lYAbDNDoKlR+pkBUBLC+DvNi8eZwCaYpc8P0qnUFWi7oEbIT8QXKy/ueOnIk0s5RcWxx IHXyOXdxfXsSRFFoVJ76cc/FFmbwt8Qa5Tlth4eiiPvfdpD0+TXbPUA/0QVdFkohOAhk UQ1AcbuC+SwsybLpcP2c4ZyIRbkhTCNg2ROU/X4sa93JSeTHVXpa5aUtexRMKa0GWWOf dTm/sVKA7fiNCmQ522/15/CP3ftwmHg+DCCNZ5Hh5iNiLLEP1EgPbkt0BUWbrV1OVkJB AiTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="gukkTH4/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w132si2149726jab.61.2021.06.23.02.32.27; Wed, 23 Jun 2021 02:32:39 -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=@redhat.com header.s=mimecast20190719 header.b="gukkTH4/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230222AbhFWJdt (ORCPT + 99 others); Wed, 23 Jun 2021 05:33:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:35425 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbhFWJds (ORCPT ); Wed, 23 Jun 2021 05:33:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624440691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uoKxP6WJfMKdvV/ri4cCRJHkTaSzfh+UYio6Jvz7jjE=; b=gukkTH4/C/F5mZkqAx8FwBqjU5Kysykx9sDHgDfCn/VjkyE73n25tU2qrENGp/6rQsVaOt TDVY8fgf2olcAt6kXLdPqDxULxs1FH5yGdaTIOSfCZaYQ+coMzj1Vp1r/PFOuTYi6OSKSm 7X6fijjuRzXsvvB0wXgCuChh+kAbM5Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-390-fIknOGXQOXmCQ2p4G_Ju1g-1; Wed, 23 Jun 2021 05:31:27 -0400 X-MC-Unique: fIknOGXQOXmCQ2p4G_Ju1g-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 347AAC7442; Wed, 23 Jun 2021 09:31:24 +0000 (UTC) Received: from localhost (ovpn-113-66.ams2.redhat.com [10.36.113.66]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D55010016F8; Wed, 23 Jun 2021 09:31:16 +0000 (UTC) From: Cornelia Huck To: Luis Chamberlain , bhelgaas@google.com, alex.williamson@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: Re: [PATCH v2 2/2] vfio: use the new pci_dev_trylock() helper to simplify try lock In-Reply-To: <20210623022824.308041-3-mcgrof@kernel.org> Organization: Red Hat GmbH References: <20210623022824.308041-1-mcgrof@kernel.org> <20210623022824.308041-3-mcgrof@kernel.org> User-Agent: Notmuch/0.32.1 (https://notmuchmail.org) Date: Wed, 23 Jun 2021 11:31:15 +0200 Message-ID: <87pmwdlyfw.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22 2021, 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: Cornelia Huck