[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240807-bejahen-lehrling-d010a78e1f39@brauner>
Date: Wed, 7 Aug 2024 12:25:18 +0200
From: Christian Brauner <brauner@...nel.org>
To: viro@...nel.org
Cc: linux-fsdevel@...r.kernel.org, amir73il@...il.com, bpf@...r.kernel.org,
cgroups@...r.kernel.org, kvm@...r.kernel.org, netdev@...r.kernel.org,
torvalds@...ux-foundation.org
Subject: Re: [PATCH 10/39] get rid of perf_fget_light(), convert
kernel/events/core.c to CLASS(fd)
On Tue, Jul 30, 2024 at 01:15:56AM GMT, viro@...nel.org wrote:
> From: Al Viro <viro@...iv.linux.org.uk>
>
> Lift fdget() and fdput() out of perf_fget_light(), turning it into
> is_perf_file(struct fd f). The life gets easier in both callers
> if we do fdget() unconditionally, including the case when we are
> given -1 instead of a descriptor - that avoids a reassignment in
> perf_event_open(2) and it avoids a nasty temptation in _perf_ioctl()
> where we must *not* lift output_event out of scope for output.
>
> Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
> ---
Reviewed-by: Christian Brauner <brauner@...nel.org>
Powered by blists - more mailing lists