commit | ddbe628c97c3a2d211c6d96383cb4063ac3ad0f9 | [log] [tgz] |
---|---|---|
author | Zhenzhong Duan <zhenzhong.duan@intel.com> | Mon Oct 17 07:53:50 2022 |
committer | Juan Quintela <quintela@redhat.com> | Mon Feb 06 18:22:57 2023 |
tree | 24b3525ac18877715b0c449304aa29ca14b234c2 | |
parent | 6720c2b32725e6ac404f22851a0ecd0a71d0cbe2 [diff] |
multifd: Fix a race on reading MultiFDPages_t.block In multifd_queue_page() MultiFDPages_t.block is checked twice. Between the two checks, MultiFDPages_t.block may be reset to NULL by multifd thread. This lead to the 2nd check always true then a redundant page submitted to multifd thread again. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>