Polish insignificant data race

Coverity CID#469225
parent 584b44a0
...@@ -3013,12 +3013,12 @@ static void * ...@@ -3013,12 +3013,12 @@ static void *
fellow_cache_async_thread(void *priv) fellow_cache_async_thread(void *priv)
{ {
struct fellow_cache *fc; struct fellow_cache *fc;
unsigned n; unsigned n, entries;
CAST_OBJ_NOTNULL(fc, priv, FELLOW_CACHE_MAGIC); CAST_OBJ_NOTNULL(fc, priv, FELLOW_CACHE_MAGIC);
unsigned entries = fellow_io_entries(fc->async_ioctx);
AZ(pthread_mutex_lock(&fc->async_mtx)); AZ(pthread_mutex_lock(&fc->async_mtx));
entries = fellow_io_entries(fc->async_ioctx);
while (fc->running) { while (fc->running) {
struct fellow_io_status status[entries]; struct fellow_io_status status[entries];
n = fellow_io_wait_completions(fc->async_ioctx, n = fellow_io_wait_completions(fc->async_ioctx,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment