diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2023-05-11 18:44:31 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-05-24 00:49:03 +0300 |
commit | 8850336588fbcccdca484b91631819eabaafd915 (patch) | |
tree | b480e1f36c79984dd1322ebea5dc4bb0989f7297 /include/linux/vfio_pci_core.h | |
parent | d977e0f7663961368f6442589e52d27484c2f5c2 (diff) | |
download | linux-8850336588fbcccdca484b91631819eabaafd915.tar.xz |
vfio/pci: Move to single error path
Enabling and disabling of an interrupt involves several steps
that can fail. Cleanup after failure is done when the error
is encountered, resulting in some repetitive code.
Support for dynamic contexts will introduce more steps during
interrupt enabling and disabling.
Transition to centralized exit path in preparation for dynamic
contexts to eliminate duplicate error handling code.
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/72dddae8aa710ce522a74130120733af61cffe4d.1683740667.git.reinette.chatre@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/vfio_pci_core.h')
0 files changed, 0 insertions, 0 deletions