diff options
author | Dave Jiang <dave.jiang@intel.com> | 2021-12-13 21:51:23 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-01-05 10:41:21 +0300 |
commit | ec0d64231615e50539d83516b974e7947d45fbce (patch) | |
tree | 1a54597ad9c7edd145ec117dd0bd55e04030b43c /drivers/dma/idxd/sysfs.c | |
parent | 26e9baa849a262f75b781c7292c36f4fdfbbf03b (diff) | |
download | linux-ec0d64231615e50539d83516b974e7947d45fbce.tar.xz |
dmaengine: idxd: embed irq_entry in idxd_wq struct
With irq_entry already being associated with the wq in a 1:1 relationship,
embed the irq_entry in the idxd_wq struct and remove back pointers for
idxe_wq and idxd_device. In the process of this work, clean up the interrupt
handle assignment so that there's no decision to be made during submit
call on where interrupt handle value comes from. Set the interrupt handle
during irq request initialization time.
irq_entry 0 is designated as special and is tied to the device itself.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163942148362.2412839.12055447853311267866.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/sysfs.c')
-rw-r--r-- | drivers/dma/idxd/sysfs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/idxd/sysfs.c b/drivers/dma/idxd/sysfs.c index c0fec88ff6c1..13404532131b 100644 --- a/drivers/dma/idxd/sysfs.c +++ b/drivers/dma/idxd/sysfs.c @@ -1304,7 +1304,6 @@ static void idxd_conf_device_release(struct device *dev) kfree(idxd->groups); kfree(idxd->wqs); kfree(idxd->engines); - kfree(idxd->irq_entries); ida_free(&idxd_ida, idxd->id); kfree(idxd); } |