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:Eric Dumazet <edumazet@google.com> Reported-by:
배석진 <soukjin.bae@samsung.com> Git-commit: 0d5b9311baf27bb545f187f12ecfd558220c607d Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by:
Sharath Chandra Vurukala <sharathv@codeaurora.org>
Loading
Please register or sign in to comment