Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 278bf347 authored by Eric Dumazet's avatar Eric Dumazet Committed by Sharath Chandra Vurukala
Browse files

inet: frags: better deal with smp races

Multiple cpus might attempt to insert a new fragment in rhashtable,
if for example RPS is buggy, as reported by 배석진 in
https://patchwork.ozlabs.org/patch/994601/



We use rhashtable_lookup_get_insert_key() instead of
rhashtable_insert_fast() to let cpus losing the race
free their own inet_frag_queue and use the one that
was inserted by another cpu.

Change-Id: Ic99e013a700bcf1ecbb872185f50c5e6b2a0057d
Fixes: 648700f76b03 ("inet: frags: use rhashtables for reassembly units")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Reported-by: default avatar배석진 <soukjin.bae@samsung.com>
Git-commit: 0d5b9311baf27bb545f187f12ecfd558220c607d
Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarSharath Chandra Vurukala <sharathv@codeaurora.org>
parent 1501cf60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment