xen/pvcalls: don't call bind_evtchn_to_irqhandler() under lock
authorJuergen Gross <jgross@suse.com>
Mon, 3 Apr 2023 09:27:11 +0000 (11:27 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 24 Apr 2023 05:27:10 +0000 (07:27 +0200)
commitc66bb48edd58c3a22072b4f68312c225dc1b0009
treebdf399e704069f895a23d42c28ba5ab080bce55b
parentb2c042cc802fe96d431821bf1cf2f0f04a3eda7d
xen/pvcalls: don't call bind_evtchn_to_irqhandler() under lock

bind_evtchn_to_irqhandler() shouldn't be called under spinlock, as it
can sleep.

This requires to move the calls of create_active() out of the locked
regions. This is no problem, as the worst which could happen would be
a spurious call of the interrupt handler, causing a spurious wake_up().

Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/lkml/Y+JUIl64UDmdkboh@kadam/
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/20230403092711.15285-1-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/pvcalls-front.c