From: Arthas <kangzy1982@qq.com>
To: dev <dev@dpdk.org>
Subject: [dpdk-dev] __rte_hash_add_key_with_hash BUG with RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD extra flag ?
Date: Sun, 12 Mar 2017 23:12:28 +0800 [thread overview]
Message-ID: <tencent_78BB5E0D47E00CDB25B39F7B@qq.com> (raw)
If the hash table created with RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD extra flags, and more one worker add same value and same key. the firt worker will add value & key success, and second worker will execute lock and found a exist value & key and return exist index without unlock. then it course next adder spinlock deadlock!
Best Regards!
Arthas
reply other threads:[~2017-03-12 15:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_78BB5E0D47E00CDB25B39F7B@qq.com \
--to=kangzy1982@qq.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).