vfio-ccw: Refactor the unregister of the async regions
authorEric Farman <farman@linux.ibm.com>
Tue, 5 May 2020 12:27:40 +0000 (14:27 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 2 Jun 2020 11:14:08 +0000 (13:14 +0200)
commit600279b52659c8211c6625fb2c9cd8bf8de15061
tree9d06336a38811230109e726645b18016d5817526
parentb7701dfbf98327f34966a68c2532730353245d7b
vfio-ccw: Refactor the unregister of the async regions

This is mostly for the purposes of a later patch, since
we'll need to do the same thing later.

While we are at it, move the resulting function call to ahead
of the unregistering of the IOMMU notifier, so that it's done
in the reverse order of how it was created.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20200505122745.53208-4-farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_ops.c
drivers/s390/cio/vfio_ccw_private.h