s390/vfio-ap: use work struct to verify queue reset
Instead of waiting to verify that a queue is reset in the vfio_ap_mdev_reset_queue function, let's use a wait queue to check the the state of the reset. This way, when resetting all of the queues assigned to a matrix mdev, we don't have to wait for each queue to be reset before initiating a reset on the next queue to be reset. Signed-off-by:Tony Krowiak <akrowiak@linux.ibm.com> Reviewed-by:
Jason J. Herne <jjherne@linux.ibm.com> Suggested-by:
Halil Pasic <pasic@linux.ibm.com> Acked-by:
Janosch Frank <frankja@linux.ibm.com> Tested-by:
Viktor Mihajlovski <mihajlov@linux.ibm.com> Link: https://lore.kernel.org/r/20230815184333.6554-8-akrowiak@linux.ibm.comSigned-off-by:
Heiko Carstens <hca@linux.ibm.com>
Showing
Please register or sign in to comment