[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190216175953.GD23000@mit.edu>
Date: Sat, 16 Feb 2019 12:59:53 -0500
From: "Theodore Y. Ts'o" <tytso@....edu>
To: Sultan Alsawaf <sultan@...neltoast.com>
CC: <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] random: fix inconsistent spinlock usage
On Fri, Feb 15, 2019 at 02:03:06PM -0800, Sultan Alsawaf wrote:
> All users of the struct entropy_store spinlock use the irqsave spinlock variant.
> Spinlock users of the same lock should use be consistent in their use of a
> certain spinlock primitive, which makes add_interrupt_randomness()'s spinlock
> usage incorrect.
>
> Fix the inconsistency by converting add_interrupt_randomness()'s spinlocks to
> use the irqsave primitive.
>
> Signed-off-by: Sultan Alsawaf <sultan@...neltoast.com>
This isn't a problem; interrupts are off by definition when
add_interrupt_randomness() is called so there's no point using the
irqsave version.
Also, please note that your patches are whitespace damaged, so they
can't be applied directly. You may want to look into how you are
sending your patches.
Regards,
- Ted
Powered by blists - more mailing lists