Re: [PATCH v6 3/5] qrwlock: Enable fair queue read/write lock

From: Linus Torvalds
Date: Mon Nov 18 2013 - 13:38:39 EST


On Mon, Nov 18, 2013 at 10:34 AM, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
>
> FWIW unfair can be faster in some cases. It depends on the workload.

Sure. And we've never cared before.

When we switched over to the ticket spinlocks, we actually had
*numbers* about how the old unfair spinlocks could be faster. And we
still didn't leave a "unfair spinlocks" option. Because it didn't make
sense.

Why would it make sense here?

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