aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoecmd.c
diff options
context:
space:
mode:
authorEd Cashin <ecashin@coraid.com>2012-10-04 20:16:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:05:25 -0400
commiteb086ec59667df5b07d58176e21a5f523ead1d66 (patch)
tree85c0fa90b4791659f128518115ca0df4ece88586 /drivers/block/aoe/aoecmd.c
parent69cf2d85de773d998798e47e3335b85e5645d157 (diff)
aoe: use a kernel thread for transmissions
The dev_queue_xmit function needs to have interrupts enabled, so the most simple way to get the locking right but still fulfill that requirement is to use a process that can call dev_queue_xmit serially over queued transmissions. Signed-off-by: Ed Cashin <ecashin@coraid.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/aoe/aoecmd.c')
-rw-r--r--drivers/block/aoe/aoecmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 5928a08c1f3f..a1c5e8aa08c0 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -1110,14 +1110,14 @@ kthread(void *vp)
1110 return 0; 1110 return 0;
1111} 1111}
1112 1112
1113static void 1113void
1114aoe_ktstop(struct ktstate *k) 1114aoe_ktstop(struct ktstate *k)
1115{ 1115{
1116 kthread_stop(k->task); 1116 kthread_stop(k->task);
1117 wait_for_completion(&k->rendez); 1117 wait_for_completion(&k->rendez);
1118} 1118}
1119 1119
1120static int 1120int
1121aoe_ktstart(struct ktstate *k) 1121aoe_ktstart(struct ktstate *k)
1122{ 1122{
1123 struct task_struct *task; 1123 struct task_struct *task;