[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200520105629.GH317569@hirez.programming.kicks-ass.net>
Date: Wed, 20 May 2020 12:56:29 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>,
Will Deacon <will@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
"Paul E . McKenney" <paulmck@...nel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Julia Cartwright <julia@...com>,
Phillip Lougher <phillip@...ashfs.org.uk>,
Alexander Stein <alexander.stein@...tec-electronic.com>
Subject: Re: [PATCH 5/8] squashfs: make use of local lock in multi_cpu
decompressor
On Tue, May 19, 2020 at 10:19:09PM +0200, Sebastian Andrzej Siewior wrote:
> diff --git a/fs/squashfs/decompressor_multi_percpu.c b/fs/squashfs/decompressor_multi_percpu.c
> index 2a2a2d106440e..8a77a2741c176 100644
> --- a/fs/squashfs/decompressor_multi_percpu.c
> +++ b/fs/squashfs/decompressor_multi_percpu.c
> @@ -8,6 +8,7 @@
> #include <linux/slab.h>
> #include <linux/percpu.h>
> #include <linux/buffer_head.h>
> +#include <linux/locallock.h>
>
> #include "squashfs_fs.h"
> #include "squashfs_fs_sb.h"
> @@ -23,6 +24,8 @@ struct squashfs_stream {
> void *stream;
> };
>
> +static DEFINE_LOCAL_LOCK(stream_lock);
As per the others, you can stick it in struct squashfs_stream.
Powered by blists - more mailing lists