projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c08d28c
)
Merge branch 'zero_ioengine_flags' of https://github.com/sitsofe/fio
author
Jens Axboe
<axboe@fb.com>
Sun, 30 Apr 2017 22:49:22 +0000
(16:49 -0600)
committer
Jens Axboe
<axboe@fb.com>
Sun, 30 Apr 2017 22:49:22 +0000
(16:49 -0600)
fio.h
patch
|
blob
|
blame
|
history
diff --git
a/fio.h
b/fio.h
index 6b2b669d3ccc93ac4aafadb8b59da91c537d6102..e11a03902676285635ae5d2e2dc2b60ed83eb401 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-596,7
+596,8
@@
static inline enum fio_ioengine_flags td_ioengine_flags(struct thread_data *td)
static inline void td_set_ioengine_flags(struct thread_data *td)
{
- td->flags |= (td->io_ops->flags << TD_ENG_FLAG_SHIFT);
+ td->flags = (~(TD_ENG_FLAG_MASK << TD_ENG_FLAG_SHIFT) & td->flags) |
+ (td->io_ops->flags << TD_ENG_FLAG_SHIFT);
}
static inline bool td_ioengine_flagged(struct thread_data *td,