summaryrefslogtreecommitdiff
path: root/include/linux/mdev.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2021-08-06 04:19:09 +0300
committerAlex Williamson <alex.williamson@redhat.com>2021-08-11 18:50:11 +0300
commitdd574d9b728d583e30289244be139f82d0de3fb3 (patch)
tree73fda17fb869b9130a9b2d09fddd37a3425ea7c8 /include/linux/mdev.h
parent9b0d6b7e28a9bbbf4cee0727a299c2107047b1a5 (diff)
downloadlinux-dd574d9b728d583e30289244be139f82d0de3fb3.tar.xz
vfio/gvt: Fix open/close when multiple device FDs are open
The user can open multiple device FDs if it likes, however the open function calls vfio_register_notifier() on device global state. Calling vfio_register_notifier() twice will trigger a WARN_ON from notifier_chain_register() and the first close will wrongly delete the notifier and more. Since these really want the new open/close_device() semantics just change the function over. Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/13-v4-9ea22c5e6afb+1adf-vfio_reflck_jgg@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/mdev.h')
0 files changed, 0 insertions, 0 deletions