From: Markus Elfring <Markus.Elfring@web.de>
To: Farhan Ali <alifm@linux.ibm.com>,
linux-s390@vger.kernel.org, linux-pci@vger.kernel.org
Cc: stable@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
"Alex Williamson" <alex@shazbot.org>,
"Bjorn Helgaas" <helgaas@kernel.org>,
"Cédric Le Goater" <clg@redhat.com>,
"Keith Busch" <kbusch@kernel.org>,
"Lukas Wunner" <lukas@wunner.de>,
"Matthew Rosato" <mjrosato@linux.ibm.com>,
"Niklas Schnelle" <schnelle@linux.ibm.com>
Subject: Re: [PATCH v10 6/9] s390/pci: Store PCI error information for passthrough devices
Date: Wed, 11 Mar 2026 20:30:37 +0100 [thread overview]
Message-ID: <9e31dbbd-561c-4352-84ea-3ee0c9aec567@web.de> (raw)
In-Reply-To: <20260302203325.3826-7-alifm@linux.ibm.com>
…
> +++ b/arch/s390/pci/pci_event.c
…
> +void zpci_cleanup_pending_errors(struct zpci_dev *zdev)
> +{
…
> + mutex_lock(&zdev->pending_errs_lock);
> + pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn);
…
> + pci_dev_put(pdev);
> + mutex_unlock(&zdev->pending_errs_lock);
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&zdev->pending_errs_lock);”?
https://elixir.bootlin.com/linux/v7.0-rc3/source/include/linux/mutex.h#L253
Regards,
Markus
next prev parent reply other threads:[~2026-03-11 19:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 20:33 [PATCH v10 0/9] Error recovery for vfio-pci devices on s390x Farhan Ali
2026-03-02 20:33 ` [PATCH v10 1/9] PCI: Allow per function PCI slots Farhan Ali
2026-03-02 20:33 ` [PATCH v10 2/9] s390/pci: Add architecture specific resource/bus address translation Farhan Ali
2026-03-02 20:33 ` [PATCH v10 3/9] PCI: Avoid saving config space state if inaccessible Farhan Ali
2026-03-02 20:33 ` [PATCH v10 4/9] PCI: Add additional checks for flr reset Farhan Ali
2026-03-11 15:24 ` Benjamin Block
2026-03-11 18:51 ` Farhan Ali
2026-03-02 20:33 ` [PATCH v10 5/9] s390/pci: Update the logic for detecting passthrough device Farhan Ali
2026-03-02 20:33 ` [PATCH v10 6/9] s390/pci: Store PCI error information for passthrough devices Farhan Ali
2026-03-11 19:30 ` Markus Elfring [this message]
2026-03-11 19:49 ` Farhan Ali
2026-03-02 20:33 ` [PATCH v10 7/9] vfio-pci/zdev: Add a device feature for error information Farhan Ali
2026-03-02 20:33 ` [PATCH v10 8/9] vfio: Add a reset_done callback for vfio-pci driver Farhan Ali
2026-03-02 20:33 ` [PATCH v10 9/9] vfio: Remove the pcie check for VFIO_PCI_ERR_IRQ_INDEX Farhan Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e31dbbd-561c-4352-84ea-3ee0c9aec567@web.de \
--to=markus.elfring@web.de \
--cc=alex@shazbot.org \
--cc=alifm@linux.ibm.com \
--cc=clg@redhat.com \
--cc=helgaas@kernel.org \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=mjrosato@linux.ibm.com \
--cc=schnelle@linux.ibm.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox