[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070102.003839.08324311.davem@davemloft.net>
Date: Tue, 02 Jan 2007 00:38:39 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: horms@...ge.net.au
Cc: netdev@...r.kernel.org, wensong@...ux-vs.org, ja@....bg,
ratz@...gphish.ch, jmack@...d.net
Subject: Re: [PATCH] [IPVS] replace if .. goto with while
From: Horms <horms@...ge.net.au>
Date: Mon, 18 Dec 2006 12:11:11 +0900
> I guess that this code used to be more complex, but replacing
> the goto with a while seems to make things a bit more readable.
> Or in other words, two fairly gratuitous goto are removed.
>
> On a related note, I wonder if there should be a limit to how
> many times it tries.
>
> Signed-Off-By: Simon Horman <horms@...ge.net.au>
Yes, there should be, something like a limit of one. :-)
There is no reason to loop on something like this, just
return a failure immediately if creating the kernel thread
fails.
As a side note, if it's easy you might want to convert this
over the the include/linux/kthread.h interfaces. I just did
this for pktgen tonight and it cleaned a lot of stuff up.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists