diff options
author | Ed Cashin <ecashin@coraid.com> | 2012-10-05 00:16:25 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 18:05:25 (GMT) |
commit | eb086ec59667df5b07d58176e21a5f523ead1d66 (patch) | |
tree | 85c0fa90b4791659f128518115ca0df4ece88586 /drivers/block/aoe/aoecmd.c | |
parent | 69cf2d85de773d998798e47e3335b85e5645d157 (diff) | |
download | linux-fsl-qoriq-eb086ec59667df5b07d58176e21a5f523ead1d66.tar.xz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index 5928a08..a1c5e8a 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c @@ -1110,14 +1110,14 @@ kthread(void *vp) return 0; } -static void +void aoe_ktstop(struct ktstate *k) { kthread_stop(k->task); wait_for_completion(&k->rendez); } -static int +int aoe_ktstart(struct ktstate *k) { struct task_struct *task; |