summaryrefslogtreecommitdiff
path: root/drivers/net/arcnet/arcdevice.h
diff options
context:
space:
mode:
authorAllen Pais <apais@linux.microsoft.com>2024-04-03 19:23:06 +0300
committerJakub Kicinski <kuba@kernel.org>2024-04-09 05:44:09 +0300
commit775d2e2b302897931ab7417b1da747bba7831a0b (patch)
tree0a15de6ddbbb5ac7092b22e2e0b3dcebd54da09f /drivers/net/arcnet/arcdevice.h
parent39f59c72ad3a1eaab9a60f0671bc94d2bc826d21 (diff)
downloadlinux-775d2e2b302897931ab7417b1da747bba7831a0b.tar.xz
archnet: Convert from tasklet to BH workqueue
The only generic interface to execute asynchronously in the BH context is tasklet; however, it's marked deprecated and has some design flaws. To replace tasklets, BH workqueue support was recently added. A BH workqueue behaves similarly to regular workqueues except that the queued work items are executed in the BH context. This patch converts drivers/net/archnet/* from tasklet to BH workqueue. Based on the work done by Tejun Heo <tj@kernel.org> Branch: https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-6.10 Signed-off-by: Allen Pais <allen.lkml@gmail.com> Link: https://lore.kernel.org/r/20240403162306.20258-1-apais@linux.microsoft.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/arcnet/arcdevice.h')
-rw-r--r--drivers/net/arcnet/arcdevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/arcnet/arcdevice.h b/drivers/net/arcnet/arcdevice.h
index b54275389f8a..bee60b377d7c 100644
--- a/drivers/net/arcnet/arcdevice.h
+++ b/drivers/net/arcnet/arcdevice.h
@@ -16,6 +16,7 @@
#ifdef __KERNEL__
#include <linux/interrupt.h>
+#include <linux/workqueue.h>
/*
* RECON_THRESHOLD is the maximum number of RECON messages to receive
@@ -268,7 +269,7 @@ struct arcnet_local {
struct net_device *dev;
int reply_status;
- struct tasklet_struct reply_tasklet;
+ struct work_struct reply_work;
/*
* Buffer management: an ARCnet card has 4 x 512-byte buffers, each of