diff options
author | Rupesh Gujare <rupesh.gujare@atmel.com> | 2013-08-22 17:38:51 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-22 10:15:55 -0700 |
commit | 6af47622398d65e4cb3a52af5de52c6b447270d5 (patch) | |
tree | 0c657d4313f9e70c69f078413c8400c9ff7cefc1 /drivers/staging/ozwpan/ozpd.h | |
parent | b75d7d45f25c8361555f368665af6636bfd10102 (diff) | |
download | linux-6af47622398d65e4cb3a52af5de52c6b447270d5.tar.bz2 |
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.h | 1 |
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 |