From: Richard Purdie <rpurdie@rpsys.net>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH 11/12] LED: Add IDE disk activity LED trigger
Date: Wed, 08 Feb 2006 03:12:58 +0000 [thread overview]
Message-ID: <1139368379.6422.180.camel@localhost.localdomain> (raw)
In-Reply-To: <58cb370e0602060853i469d3449j5d2673b407aec460@mail.gmail.com>
On Mon, 2006-02-06 at 17:53 +0100, Bartlomiej Zolnierkiewicz wrote:
> > +{
> > + led_trigger_event(ide_led_trigger, LED_OFF);
>
> It should check for blk_fs_request().
>
> ->end_request() can be used for other request types.
>
> > + ide_end_request(drive, uptodate, nr_sectors);
> > +}
> > +
> >
> > static void __exit idedisk_exit (void)
> > {
> > + led_trigger_unregister_simple(ide_led_trigger);
> > driver_unregister(&idedisk_driver.gen_driver);
>
> Shouldn't ordering be reverse to this in idedisk_init()?
> First driver_unregister(), then led_trigger_unregister_simple()?
The other issues should have been addressed in -mm now, thanks. An event
call after unregistering a trigger will not trouble the led trigger code
as it was designed to withstand this. In -mm it now matches the order in
the init function but this is purely cosmetic.
Richard
next prev parent reply other threads:[~2006-02-08 3:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-05 15:54 Richard Purdie
2006-02-06 16:53 ` Bartlomiej Zolnierkiewicz
2006-02-08 3:12 ` Richard Purdie [this message]
2006-02-08 2:49 ` Richard Purdie
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=1139368379.6422.180.camel@localhost.localdomain \
--to=rpurdie@rpsys.net \
--cc=akpm@osdl.org \
--cc=bzolnier@gmail.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®