]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/vfio-ap: Ignore duplicate link requests in vfio_ap_mdev_link_queue
authorJason J. Herne <jjherne@linux.ibm.com>
Mon, 15 Apr 2024 15:25:53 +0000 (11:25 -0400)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 22 Apr 2024 10:49:17 +0000 (12:49 +0200)
commitf3e3a4008c1d06707fd57664e3071f43b417762d
tree776f52112add6f63da9cd8eddee490c60231d12d
parente12aa0b5b2fbf324daf62245e76083e6065ec47c
s390/vfio-ap: Ignore duplicate link requests in vfio_ap_mdev_link_queue

vfio_ap_mdev_link_queue is changed to detect if a matrix_mdev has
already linked the given queue. If so, it bails out.

Signed-off-by: "Jason J. Herne" <jjherne@linux.ibm.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Link: https://lore.kernel.org/r/20240415152555.13152-4-jjherne@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c