Re: [PATCH bpf-next v5 09/13] bpf: Wire up freeing of referenced kptr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 21, 2022 at 09:56:51AM IST, Alexei Starovoitov wrote:
> On Fri, Apr 15, 2022 at 09:33:50PM +0530, Kumar Kartikeya Dwivedi wrote:
> >  	return 0;
> >  }
> > @@ -386,6 +388,7 @@ static void array_map_free_timers(struct bpf_map *map)
> >  	struct bpf_array *array = container_of(map, struct bpf_array, map);
> >  	int i;
> >
> > +	/* We don't reset or free kptr on uref dropping to zero. */
> >  	if (likely(!map_value_has_timer(map)))
>
> It was a copy paste mistake of mine to use likely() here in a cold
> function. Let's not repeat it.
>

Ok, will remove this and all the following ones that you pointed out.

> > [...]

--
Kartikeya



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux