On Tue, 10 Sep 2024 00:48:22 +0800 Yong Liang <1269690...@qq.com> wrote:
> Signed-off-by: Yong Liang <1269690...@qq.com> This is not the correct way to put the covertity and bugzilla information into the patch. The infrastruture expects: 1. Put the short description in the Subject line of the email. 2. Add a longer description of what the problem is in the git commit log (body of the email) 3. Put the Coverity Issue in as a line before the Signed-off-by in the commit log. 4. Put the Bugzilla ID in as line before the Signed-off-by 5. Put the Fixes line in before the Signed-off-by Example: commit 429219adab185909a8127e680d19f7628af62fb2 Author: Anatoly Burakov <anatoly.bura...@intel.com> Date: Fri Jul 12 12:41:35 2024 +0100 malloc: fix multi-process wait condition handling From coverity's point of view, it is theoretically possible to have an infinite wait on a wait condition because while we do check for timeout, we do not check for whether the event we are waiting for has already occurred by the time we get to the first cond_wait call (in this case, it's state of memory request list entry's state being set to COMPLETE). This can't really happen as the only time a wait condition is triggered is when we are receiving a memory event (so the entry we are waiting on cannot change before wait condition is triggered because it's protected by a mutex), so either we receive an event and modify entry state, or we exit wait on a timeout and do not care about request state. However, it's better to keep coverity happy. Coverity issue: 425709 Fixes: 07dcbfe0101f ("malloc: support multiprocess memory hotplug") Cc: sta...@dpdk.org Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com>