[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230406182525.GA1190@sol.localdomain>
Date: Thu, 6 Apr 2023 11:25:25 -0700
From: Eric Biggers <ebiggers@...nel.org>
To: fsverity@...ts.linux.dev
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Chaitanya Kulkarni <kch@...dia.com>
Subject: Re: [PATCH v2] fsverity: use WARN_ON_ONCE instead of WARN_ON
On Thu, Apr 06, 2023 at 11:15:42AM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@...gle.com>
>
> As per Linus's suggestion
> (https://lore.kernel.org/r/CAHk-=whefxRGyNGzCzG6BVeM=5vnvgb-XhSeFJVxJyAxAF8XRA@mail.gmail.com),
> use WARN_ON_ONCE instead of WARN_ON. This barely adds any extra
> overhead, and it makes it so that if any of these ever becomes reachable
> (they shouldn't, but that's the point), the logs can't be flooded.
>
> Reviewed-by: Chaitanya Kulkarni <kch@...dia.com>
> Signed-off-by: Eric Biggers <ebiggers@...gle.com>
> ---
> fs/verity/enable.c | 4 ++--
> fs/verity/hash_algs.c | 4 ++--
> fs/verity/open.c | 2 +-
> include/linux/fsverity.h | 6 +++---
> 4 files changed, 8 insertions(+), 8 deletions(-)
Sorry, forgot changelog:
v2: also convert the three WARN_ON in include/linux/fsverity.h
- Eric
Powered by blists - more mailing lists