From: Jean Delvare <khali@linux-fr.org>
To: Trent Piepho <xyzzy@speakeasy.org>
Cc: Andy Walls <awalls@radix.net>, linux-media@vger.kernel.org
Subject: Re: General protection fault on rmmod cx8800
Date: Tue, 3 Mar 2009 13:16:33 +0100 [thread overview]
Message-ID: <20090303131633.52dbb472@hyperion.delvare> (raw)
In-Reply-To: <Pine.LNX.4.58.0903030107110.24268@shell2.speakeasy.net>
On Tue, 3 Mar 2009 01:40:00 -0800 (PST), Trent Piepho wrote:
> On Mon, 2 Mar 2009, Jean Delvare wrote:
> > > Makes the most sense to me. I was just about to make a patch to do the
> > > same thing when I got your email. Though I was going to patch the v4l-dvb
> > > sources to avoid porting work.
> >
> > It was easier for me to test on an upstream kernel. The porting should
> > be fairly easy, I can take care of it. The difficult part will be to
> > handle the compatibility with kernels < 2.6.20 because delayed_work was
> > introduced in 2.6.20. Probably "compatibility" here will simply mean
> > that the bug I've hit will only be fixed for kernels >= 2.6.20. Which
> > once again raises the question of whether we really want to keep
> > supporting these old kernels.
>
> cancel_delayed_work_sync() was renamed from cancel_rearming_delayed_work()
> in 2.6.23. A compat.h patch can handle that one.
>
> In 2.6.22, cancel_delayed_work_sync(work) was created from
> cancel_rearming_delayed_workqueue(wq, work). The kernel has a compat
> function to turn cancel_rearming_delayed_workqueue() into the
> cancel_delayed_work_sync() call. cancel_rearming_delayed_workqueue() has
> been around since 2.6.13. Apparently it was un-exported for a while
> because it had no users, see commit v2.6.12-rc2-8-g81ddef7. Isn't it nice
> that there a commit message other than "export
> cancel_rearming_delayed_workqueue"? Let me again express my dislike for
> commit with no description.
>
> In 2.6.20 delayed_work was split from work_struct. The concept of delayed
> work was already there and schedule_delayed_work() hasn't changed. I think
> this can also be handled with a compat.h change that defines delayed_work
> to work_struct. That will only be a problem on pre 2.6.20 kernels if some
> code decides to define identifiers named work_struct and delayed_work in
> the same scope. There are currently no identifier named delayed_work in
> any driver and one driver (sq905) has a structure member named
> work_struct. So I think it'll be ok.
Wow, I didn't expect that many different compatibility issues. This
goes beyond the time I am ready to spend on it, I'm afraid.
--
Jean Delvare
next prev parent reply other threads:[~2009-03-03 12:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-15 20:41 General protection fault on rmmod cx8800 Jean Delvare
2009-03-02 12:39 ` Jean Delvare
2009-03-02 14:16 ` Andy Walls
2009-03-02 16:03 ` Jean Delvare
2009-03-02 19:05 ` Jean Delvare
2009-03-02 21:12 ` Trent Piepho
2009-03-02 21:52 ` Jean Delvare
2009-03-03 9:40 ` Trent Piepho
2009-03-03 9:49 ` Trent Piepho
2009-03-03 12:16 ` Jean Delvare [this message]
2009-03-03 20:14 ` Trent Piepho
2009-03-03 21:33 ` Jean Delvare
2009-03-02 22:33 ` Andy Walls
2009-03-02 20:09 ` Andy Walls
2009-03-05 5:09 ` Trent Piepho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090303131633.52dbb472@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=awalls@radix.net \
--cc=linux-media@vger.kernel.org \
--cc=xyzzy@speakeasy.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox