diff options
author | Mike Isely <isely@pobox.com> | 2008-04-06 21:22:04 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2008-04-06 21:22:04 -0500 |
commit | 0e6c910e99357afdff08cee78c58b2ae5b49e990 (patch) | |
tree | d68325f2ded078f8748c9a04c820b0020fc49516 /linux/drivers/media/video/saa7191.h | |
parent | 652be966f562a3f9f8e496745bc4bcafbf676074 (diff) | |
download | mediapointer-dvb-s2-0e6c910e99357afdff08cee78c58b2ae5b49e990.tar.gz mediapointer-dvb-s2-0e6c910e99357afdff08cee78c58b2ae5b49e990.tar.bz2 |
pvrusb2: Fix race on module unload
From: Mike Isely <isely@pobox.com>
The pvrusb2 driver - for basically forever - was not enforcing a
proper module tear-down. Kernel threads are used inside the driver
and all must be gone before the module can be safely removed. This
changeset reimplements a chunk of pvrusb2-context.c to enforce this
correctly. Unfortunately this is not a simple fix. The new
implementation also cuts back on kernel thread usage; instead of there
being 1 control thread per instance now it's just 1 control thread
shared by all instances. (By dropping to a single thread then the
module exit function can block on its shutdown and the thread itself
can monitor and cleanly shut down all of the other instances first.)
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/saa7191.h')
0 files changed, 0 insertions, 0 deletions