Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-4198 clio: AIO support for direct IO
[fs/lustre-release.git]
/
lustre
/
include
/
cl_object.h
diff --git
a/lustre/include/cl_object.h
b/lustre/include/cl_object.h
index
a855df3
..
7979b14
100644
(file)
--- a/
lustre/include/cl_object.h
+++ b/
lustre/include/cl_object.h
@@
-2484,11
+2484,12
@@
void cl_req_attr_set(const struct lu_env *env, struct cl_object *obj,
* @{ */
struct cl_sync_io;
* @{ */
struct cl_sync_io;
+struct cl_dio_aio;
typedef void (cl_sync_io_end_t)(const struct lu_env *, struct cl_sync_io *);
void cl_sync_io_init_notify(struct cl_sync_io *anchor, int nr,
typedef void (cl_sync_io_end_t)(const struct lu_env *, struct cl_sync_io *);
void cl_sync_io_init_notify(struct cl_sync_io *anchor, int nr,
- cl_sync_io_end_t *end);
+
struct cl_dio_aio *aio,
cl_sync_io_end_t *end);
int cl_sync_io_wait(const struct lu_env *env, struct cl_sync_io *anchor,
long timeout);
int cl_sync_io_wait(const struct lu_env *env, struct cl_sync_io *anchor,
long timeout);
@@
-2496,7
+2497,7
@@
void cl_sync_io_note(const struct lu_env *env, struct cl_sync_io *anchor,
int ioret);
static inline void cl_sync_io_init(struct cl_sync_io *anchor, int nr)
{
int ioret);
static inline void cl_sync_io_init(struct cl_sync_io *anchor, int nr)
{
- cl_sync_io_init_notify(anchor, nr, NULL);
+ cl_sync_io_init_notify(anchor, nr, NULL
, NULL
);
}
/**
}
/**
@@
-2514,6
+2515,16
@@
struct cl_sync_io {
wait_queue_head_t csi_waitq;
/** callback to invoke when this IO is finished */
cl_sync_io_end_t *csi_end_io;
wait_queue_head_t csi_waitq;
/** callback to invoke when this IO is finished */
cl_sync_io_end_t *csi_end_io;
+ /** aio private data */
+ struct cl_dio_aio *csi_aio;
+};
+
+/** To support Direct AIO */
+struct cl_dio_aio {
+ struct cl_sync_io cda_sync;
+ struct cl_page_list cda_pages;
+ struct kiocb *cda_iocb;
+ ssize_t cda_bytes;
};
/** @} cl_sync_io */
};
/** @} cl_sync_io */