Re: [PATCH v2] ipv4: fix a RCU-list lock in fib_triestat_seq_show
From: Eric Dumazet
Date: Fri Mar 27 2020 - 01:41:50 EST
On 3/26/20 8:27 PM, David Miller wrote:
> From: Qian Cai <cai@xxxxxx>
> Date: Wed, 25 Mar 2020 18:01:00 -0400
>> Fix it by adding a pair of rcu_read_lock/unlock() and use
>> cond_resched_rcu() to avoid the situation where walking of a large
>> number of items may prevent scheduling for a long time.
>>
>> Signed-off-by: Qian Cai <cai@xxxxxx>
>
> Eric, please review.
>
Patch looks good to me, thanks !
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>