From: Brett Creeley <brett.creeley@amd.com>
To: <jgg@ziepe.ca>, <yishaih@nvidia.com>,
<shameerali.kolothum.thodi@huawei.com>, <kevin.tian@intel.com>,
<alex.williamson@redhat.com>, <kvm@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: <shannon.nelson@amd.com>, <brett.creeley@amd.com>
Subject: [PATCH vfio 0/2] vfio/mlx5: locking updates
Date: Wed, 22 Nov 2023 11:32:01 -0800 [thread overview]
Message-ID: <20231122193203.26127-1-brett.creeley@amd.com> (raw)
The vfio/pds series for locking updates/fixes in the following link
made some changes that can also be done for other vendor's vfio
drivers. Specifically, changing the reset lock from a spinlock to mutex
and also calling mutex_destroy() in the vfio device release callback.
https://lore.kernel.org/kvm/20231122192532.25791-1-brett.creeley@amd.com/
So, this series makes these changes in order to remain separate from
the vfio/pds series linked above.
Note, that I don't have the required hardware to test on this vendor's
hardware, so help would be appreciated.
Brett Creeley (2):
vfio/mlx5: Change reset_lock to mutex_lock
vfio/mlx5: Destroy the state_mutex on release
drivers/vfio/pci/mlx5/cmd.c | 4 +++-
drivers/vfio/pci/mlx5/cmd.h | 3 +--
drivers/vfio/pci/mlx5/main.c | 12 ++++++------
3 files changed, 10 insertions(+), 9 deletions(-)
--
2.17.1
next reply other threads:[~2023-11-22 19:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 19:32 Brett Creeley [this message]
2023-11-22 19:32 ` [PATCH vfio 1/2] vfio/mlx5: Change reset_lock to mutex_lock Brett Creeley
2023-11-22 19:32 ` [PATCH vfio 2/2] vfio/mlx5: Destroy the state_mutex on release Brett Creeley
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=20231122193203.26127-1-brett.creeley@amd.com \
--to=brett.creeley@amd.com \
--cc=alex.williamson@redhat.com \
--cc=jgg@ziepe.ca \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=shannon.nelson@amd.com \
--cc=yishaih@nvidia.com \
/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
all inboxes | Powered by JetHome®