Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Jens Axboe <axboe@xxxxxxx>
- Date: Tue, 31 Jan 2006 21:29:45 +0100
On Tue, Jan 31 2006, Bartlomiej Zolnierkiewicz wrote:
> Hi,
>
> On 1/31/06, Richard Purdie <rpurdie@xxxxxxxxx> wrote:
> > Hi,
> >
> > On Tue, 2006-01-31 at 15:46 +0100, Bartlomiej Zolnierkiewicz wrote:
> > >
> > > Why cannot existing block layer hook be used for this?
> >
> > The trigger is supposed to be reflecting actual hardware activity, not
> > block layer activity.
>
> Ben, code in pmac.c (+ block layer) seems to be doing something
> different then Kconfig help entry states ("Blink laptop LED on drive
> activity")?
I doubt it really matters a lot, since either the activity will be done
right after (the LED will likely still be on), or the drive is already
busy doing stuff (in which case the LED is on anyways). So while the
trigger point might not be at the instant we start drive activity, it's
really close.
You could move the block layer trigger from add_request() to
elevator.c:elv_next_request() instead, right where it sets REQ_STARTED
to improve the start trigger point. Since that can happen at irq time
(whereas the add_request() cannot), it's likely more expensive.
The goal of the activity led for powerbook was not really to be 100%
accurate, but be able to tell whether the drive was doing io or not.
It's nice feedback to have for the user.
That said, the LED stuff should be able to handle pmac as well, so why
not add it generically instead of clamping it into the ide layer in odd
places?
--
Jens Axboe
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Richard Purdie
- Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Bartlomiej Zolnierkiewicz
- Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Richard Purdie
- Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Bartlomiej Zolnierkiewicz
- [PATCH 10/11] LED: Add IDE disk activity LED trigger
- Prev by Date: [patch 0/6] Add MMC password protection (lock/unlock) support V4
- Next by Date: Re: GPL V3 and Linux - Dead Copyright Holders
- Previous by thread: Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- Next by thread: Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- Index(es):
Relevant Pages
- Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
... >> Why cannot existing block layer hook be used for this? ... Default
trigger naming becomes problematic for led devices. ... > A potential solution
would be to add individual gendisk triggers by ... (Linux-Kernel) - Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
... >> Why cannot existing block layer hook be used for this? ... Default
trigger naming becomes problematic for led devices. ... Matching something like all IDE
disks becomes hard (and is actually ... (Linux-Kernel) - Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
... > Why cannot existing block layer hook be used for this? ... Default trigger
naming becomes problematic for led devices. ... Matching something like all IDE disks
becomes hard (and is actually ... At first glance a potential solution would be to hook
... (Linux-Kernel) - Re: [patch 2.6.15-rc2] blk: request poisoning
... >>This patch should make request poisoning more useful ... >>Don't
think I have hardware that will trigger a requeue, ... AS was a new concept to the block
layer. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel)