Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "uio: use request_threaded_irq instead"

Since mutex lock in irq hanler is useless currently, here will
remove it together with it.

This reverts commit 9421e45f5ff3d558cf8b75a8cc0824530caf3453.

Reported-by: james.r.harris@intel.com
CC: Ahsan Atta <ahsan.atta@intel.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xiubo Li and committed by
Greg Kroah-Hartman
3d27c4de 9d3cce1e

+2 -6
+2 -6
drivers/uio/uio.c
··· 443 443 struct uio_device *idev = (struct uio_device *)dev_id; 444 444 irqreturn_t ret; 445 445 446 - mutex_lock(&idev->info_lock); 447 - 448 446 ret = idev->info->handler(irq, idev->info); 449 447 if (ret == IRQ_HANDLED) 450 448 uio_event_notify(idev->info); 451 449 452 - mutex_unlock(&idev->info_lock); 453 450 return ret; 454 451 } 455 452 ··· 966 969 * FDs at the time of unregister and therefore may not be 967 970 * freed until they are released. 968 971 */ 969 - ret = request_threaded_irq(info->irq, NULL, uio_interrupt, 970 - info->irq_flags, info->name, idev); 971 - 972 + ret = request_irq(info->irq, uio_interrupt, 973 + info->irq_flags, info->name, idev); 972 974 if (ret) 973 975 goto err_request_irq; 974 976 }