projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suppress uninteresting data race reports
[fio.git]
/
diskutil.c
diff --git
a/diskutil.c
b/diskutil.c
index 1f2471be50470377c0acca7bdec3e441e5c1b8fa..dd8fc6a20b3aec09875823f416369743a897af3e 100644
(file)
--- a/
diskutil.c
+++ b/
diskutil.c
@@
-8,6
+8,11
@@
#include <libgen.h>
#include <math.h>
#include <assert.h>
#include <libgen.h>
#include <math.h>
#include <assert.h>
+#ifdef CONFIG_VALGRIND_DEV
+#include <valgrind/drd.h>
+#else
+#define DRD_IGNORE_VAR(x) do { } while (0)
+#endif
#include "fio.h"
#include "smalloc.h"
#include "fio.h"
#include "smalloc.h"
@@
-297,6
+302,7
@@
static struct disk_util *disk_util_add(struct thread_data *td, int majdev,
if (!du)
return NULL;
if (!du)
return NULL;
+ DRD_IGNORE_VAR(du->users);
memset(du, 0, sizeof(*du));
INIT_FLIST_HEAD(&du->list);
l = snprintf(du->path, sizeof(du->path), "%s/stat", path);
memset(du, 0, sizeof(*du));
INIT_FLIST_HEAD(&du->list);
l = snprintf(du->path, sizeof(du->path), "%s/stat", path);