Re: [PATCH 4/6] myri10ge - First half of the driver

From: Francois Romieu
Date: Sat May 13 2006 - 12:15:05 EST


Brice Goglin <brice@xxxxxxxx> :
[...]
> > Return in a middle of a spinlock-intensive function. :o(
> >
>
> What do you mean ?

It is preferred for maintenance purpose (hello Mr Morton) to organize
the control flow with a single spin_{lock/unlock} pair: if there is a
branch in the control flow, it ought to be joined again before returning.

--
Ueimor
-
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/