Re: [PATCH 2/2 v6] locking/selftest: Support queued rwlock

From: Shuah Khan
Date: Tue Aug 05 2014 - 10:07:34 EST


On Tue, Aug 5, 2014 at 7:28 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> Maybe I wasn't clear; but I meant you should extend the lock tests to
> cover the full qrwlock semantics.
>
> That means we also need tests like:
>
> RL(X1);
> IRQ_ENTER();
> RL(X2);
> IRQ_EXIT();
>
> To fully validate that in_interrupt exception to fairness etc..

A bit off topic for this patch, however relevant for tests in general.
Is there a reason why these locking selftests need to be under lib?
Can they be consolidated under tools/testing/selftests?

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