summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ozwpan/ozpd.h
diff options
context:
space:
mode:
authorRupesh Gujare2013-08-22 18:38:51 +0200
committerGreg Kroah-Hartman2013-08-22 19:15:55 +0200
commit6af47622398d65e4cb3a52af5de52c6b447270d5 (patch)
tree0c657d4313f9e70c69f078413c8400c9ff7cefc1 /drivers/staging/ozwpan/ozpd.h
parentstaging: ozwpan: Increment reference counter. (diff)
downloadkernel-qcow2-linux-6af47622398d65e4cb3a52af5de52c6b447270d5.tar.gz
kernel-qcow2-linux-6af47622398d65e4cb3a52af5de52c6b447270d5.tar.xz
kernel-qcow2-linux-6af47622398d65e4cb3a52af5de52c6b447270d5.zip
staging: ozwpan: Create deferred work to destroy PD object.
Currently we call oz_pd_destroy() from softirq context, where we try to destroy relevant data structures, as well we kill a tasklet which always result in following kernel warning. [12279.262194] Attempt to kill tasklet from interrupt [12279.262202] Attempt to kill tasklet from interrupt This patch defers deallocation of data structures to work queue. Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozpd.h')
-rw-r--r--drivers/staging/ozwpan/ozpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/ozwpan/ozpd.h b/drivers/staging/ozwpan/ozpd.h
index 996ef65ed315..12c712956888 100644
--- a/drivers/staging/ozwpan/ozpd.h
+++ b/drivers/staging/ozwpan/ozpd.h
@@ -99,6 +99,7 @@ struct oz_pd {
u8 timeout_type;
struct tasklet_struct heartbeat_tasklet;
struct tasklet_struct timeout_tasklet;
+ struct work_struct workitem;
};
#define OZ_MAX_QUEUED_FRAMES 4