]> git.baikalelectronics.ru Git - kernel.git/commit
vhost_vdpa: unset vq irq before freeing irq
authorWu Zongyong <wuzongyong@linux.alibaba.com>
Wed, 15 Sep 2021 06:39:32 +0000 (14:39 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Oct 2021 12:35:36 +0000 (08:35 -0400)
commit0647d9c78cbc9ba66db4349dc552b08acade9c30
treea1893d5240381ddb1a1063e71e1f5eb23e73cafb
parentc6b5dd8b038fe5b5d038ba2bfc33cdf863e8421b
vhost_vdpa: unset vq irq before freeing irq

Currently we unset vq irq after freeing irq and that will result in
error messages:

  pi_update_irte: failed to update PI IRTE
  irq bypass consumer (token 000000005a07a12b) unregistration fails: -22

This patch solves this.

Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com>
Link: https://lore.kernel.org/r/02637d38dcf4e4b836c5b3a65055fe92bf812b3b.1631687872.git.wuzongyong@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/vdpa.c