* Re: [PATCH] drivers:md: Remove no longer needed fixme comment in raid5.c
[not found] <1418831373-18415-1-git-send-email-xerofoify@gmail.com>
@ 2014-12-17 23:19 ` NeilBrown
2014-12-18 4:44 ` Valdis.Kletnieks
0 siblings, 1 reply; 2+ messages in thread
From: NeilBrown @ 2014-12-17 23:19 UTC (permalink / raw)
To: Nicholas Krause; +Cc: linux-raid, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1123 bytes --]
On Wed, 17 Dec 2014 10:49:33 -0500 Nicholas Krause <xerofoify@gmail.com>
wrote:
> Removes the no longer needed fix me comment related to not needing the agrument faster for the function,
> sync_request. Due to getting warnings when building without the agrument it seems that this fix me was
> wrong and we must keep this agrument in order to avoid build warnings when building without it.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
> drivers/md/raid5.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
> index c1b0d52..c0fde2a 100644
> --- a/drivers/md/raid5.c
> +++ b/drivers/md/raid5.c
> @@ -4986,7 +4986,6 @@ ret:
> return reshape_sectors;
> }
>
> -/* FIXME go_faster isn't used */
> static inline sector_t sync_request(struct mddev *mddev, sector_t sector_nr, int *skipped, int go_faster)
> {
> struct r5conf *conf = mddev->private;
Why do you think the comment is no longer needed. Is "go_faster" being used
now? Is there a clear explanation somewhere of why "go_faster" should not be
used?
NeilBrown
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers:md: Remove no longer needed fixme comment in raid5.c
2014-12-17 23:19 ` [PATCH] drivers:md: Remove no longer needed fixme comment in raid5.c NeilBrown
@ 2014-12-18 4:44 ` Valdis.Kletnieks
0 siblings, 0 replies; 2+ messages in thread
From: Valdis.Kletnieks @ 2014-12-18 4:44 UTC (permalink / raw)
To: NeilBrown; +Cc: Nicholas Krause, linux-raid, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
On Thu, 18 Dec 2014 10:19:06 +1100, NeilBrown said:
> On Wed, 17 Dec 2014 10:49:33 -0500 Nicholas Krause <xerofoify@gmail.com> wrote:
>
> > Removes the no longer needed fix me comment related to not needing the agrument faster for the function,
> > sync_request. Due to getting warnings when building without the agrument it seems that this fix me was
> > wrong and we must keep this agrument in order to avoid build warnings when building without it.
Examining raid1.c, which *does* use the go_faster parameter, I suspect
that the *real* meaning of the FIXME is that the code in raid5.c *should*
possibly be doing this that's done in raid1.c's sync_request():
/*
* If there is non-resync activity waiting for a turn,
* and resync is going fast enough,
* then let it though before starting on this new sync request.
*/
if (!go_faster && conf->nr_waiting)
msleep_interruptible(1000);
(Which is one of the few flow differences for the sync_request() code
in raid1.c versus raid5.c. I'll however defer to actual RAID experts
on whether raid5 needs resync throttling, or if it's accomplished via
other means I'm not spotting. Finding a FIXME outside of drivers/staging
is usually a "Here be fearsome and nasty dragons" comment....
[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-18 4:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1418831373-18415-1-git-send-email-xerofoify@gmail.com>
2014-12-17 23:19 ` [PATCH] drivers:md: Remove no longer needed fixme comment in raid5.c NeilBrown
2014-12-18 4:44 ` Valdis.Kletnieks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).