mirror of
https://github.com/ceph/ceph
synced 2025-01-12 14:10:27 +00:00
Merge pull request #52430 from vedanshbhartia/coverity_datarace
rgw: Add coverity annotations for missing mutex locks reviewed-by: yuvalif, mkogan1
This commit is contained in:
commit
9a0a855fb0
@ -65,6 +65,7 @@ D3nDataCache::D3nDataCache()
|
||||
|
||||
void D3nDataCache::init(CephContext *_cct) {
|
||||
cct = _cct;
|
||||
// coverity[missing_lock:SUPPRESS]
|
||||
free_data_cache_size = cct->_conf->rgw_d3n_l1_datacache_size;
|
||||
head = nullptr;
|
||||
tail = nullptr;
|
||||
|
@ -1038,6 +1038,8 @@ void RGWRados::finalize()
|
||||
}
|
||||
}
|
||||
if (run_sync_thread) {
|
||||
// https://github.com/ceph/ceph/commit/9106e8ad3121a503bf49a7334367849756bd1291
|
||||
// coverity[missing_lock:SUPPRESS]
|
||||
delete meta_sync_processor_thread;
|
||||
meta_sync_processor_thread = NULL;
|
||||
std::lock_guard dl{data_sync_thread_lock};
|
||||
|
@ -226,6 +226,7 @@ namespace rgw {
|
||||
~file();
|
||||
};
|
||||
|
||||
// coverity[missing_lock:SUPPRESS]
|
||||
struct directory {
|
||||
|
||||
static constexpr uint32_t FLAG_NONE = 0x0000;
|
||||
|
@ -1017,7 +1017,10 @@ int RGWHTTPManager::set_request_state(RGWHTTPClient *client, RGWHTTPRequestSetSt
|
||||
return 0;
|
||||
}
|
||||
|
||||
// mutex already locked
|
||||
// coverity[missing_lock:SUPPRESS]
|
||||
req_data->write_paused = suggested_wr_paused;
|
||||
// coverity[missing_lock:SUPPRESS]
|
||||
req_data->read_paused = suggested_rd_paused;
|
||||
|
||||
int bitmask = CURLPAUSE_CONT;
|
||||
|
Loading…
Reference in New Issue
Block a user