projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: check for gtk version using pkg-config
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 7b6611a013b252aeca518c1c0f4af6caf89ed5c8..2103151d9b42b3b318cb16d4e3519bc6ed354da1 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-57,7
+57,9
@@
/*
* "local" is pseudo-policy
*/
/*
* "local" is pseudo-policy
*/
-#define MPOL_LOCAL MPOL_MAX
+#ifndef MPOL_LOCAL
+#define MPOL_LOCAL 4
+#endif
#endif
#ifdef CONFIG_CUDA
#endif
#ifdef CONFIG_CUDA
@@
-243,7
+245,7
@@
struct thread_data {
void *iolog_buf;
FILE *iolog_f;
void *iolog_buf;
FILE *iolog_f;
- u
nsigned long
rand_seeds[FIO_RAND_NR_OFFS];
+ u
int64_t
rand_seeds[FIO_RAND_NR_OFFS];
struct frand_state bsrange_state[DDIR_RWDIR_CNT];
struct frand_state verify_state;
struct frand_state bsrange_state[DDIR_RWDIR_CNT];
struct frand_state verify_state;
@@
-770,6
+772,11
@@
static inline bool td_async_processing(struct thread_data *td)
return (td->flags & TD_F_NEED_LOCK) != 0;
}
return (td->flags & TD_F_NEED_LOCK) != 0;
}
+static inline bool td_offload_overlap(struct thread_data *td)
+{
+ return td->o.serialize_overlap && td->o.io_submit_mode == IO_MODE_OFFLOAD;
+}
+
/*
* We currently only need to do locking if we have verifier threads
* accessing our internal structures too
/*
* We currently only need to do locking if we have verifier threads
* accessing our internal structures too
@@
-850,4
+857,7
@@
enum {
extern void exec_trigger(const char *);
extern void check_trigger_file(void);
extern void exec_trigger(const char *);
extern void check_trigger_file(void);
+extern bool in_flight_overlap(struct io_u_queue *q, struct io_u *io_u);
+extern pthread_mutex_t overlap_check;
+
#endif
#endif