diff options
author | Eric Farman <farman@linux.ibm.com> | 2022-07-28 23:49:13 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-08-01 22:36:47 +0300 |
commit | 96a4c9ecaeac2863d53c086d4b5ec9985ba7154f (patch) | |
tree | c011f91463e4aa4fe26b467af8f46c0fa7cc8724 /drivers/s390/cio/vfio_ccw_ops.c | |
parent | 5a4fe7c41b586399d502f9970b077178e5dfbacf (diff) | |
download | linux-96a4c9ecaeac2863d53c086d4b5ec9985ba7154f.tar.xz |
vfio/ccw: Remove FSM Close from remove handlers
Now that neither vfio_ccw_sch_probe() nor vfio_ccw_mdev_probe()
affect the FSM state, it doesn't make sense for their _remove()
counterparts try to revert things in this way. Since the FSM open
and close are handled alongside MDEV open/close, these are
unnecessary.
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20220728204914.2420989-3-farman@linux.ibm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/s390/cio/vfio_ccw_ops.c')
-rw-r--r-- | drivers/s390/cio/vfio_ccw_ops.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/s390/cio/vfio_ccw_ops.c b/drivers/s390/cio/vfio_ccw_ops.c index 3f67fa103c7f..4a806a2273b5 100644 --- a/drivers/s390/cio/vfio_ccw_ops.c +++ b/drivers/s390/cio/vfio_ccw_ops.c @@ -130,8 +130,6 @@ static void vfio_ccw_mdev_remove(struct mdev_device *mdev) vfio_unregister_group_dev(&private->vdev); - vfio_ccw_fsm_event(private, VFIO_CCW_EVENT_CLOSE); - vfio_uninit_group_dev(&private->vdev); atomic_inc(&private->avail); } |