dmaengine: idxd: remove interrupt disable for dev_lock
authorDave Jiang <dave.jiang@intel.com>
Tue, 24 Aug 2021 21:24:27 +0000 (14:24 -0700)
committerVinod Koul <vkoul@kernel.org>
Sun, 29 Aug 2021 13:44:20 +0000 (19:14 +0530)
commitcf84a4b968f38383534bcd0484385c9254828b2c
tree5bc214fb8ed740803560567d91ad86af9d7cd429
parentf9f4082dbc56c40093bcb5c1f62c04a916eca9a2
dmaengine: idxd: remove interrupt disable for dev_lock

The spinlock is not being used in hard interrupt context. There is no need
to disable irq when acquiring the lock. The interrupt thread handler also
is not in bottom half context, therefore we can also remove disabling of
the bh. Convert all dev_lock acquisition to plain spin_lock() calls.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162984026772.1939166.11504067782824765879.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/cdev.c
drivers/dma/idxd/device.c
drivers/dma/idxd/irq.c
drivers/dma/idxd/sysfs.c