mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
91acb21f08
The patch to use host AIO support that I submitted early after 2.6.13 exposed some problems in the block driver. I have fixes for these, but am not comfortable putting them into 2.6.14 at this late date. So, this patch reverts the use of host AIO. I will resubmit the original patch, plus fixes to the driver after 2.6.14 in order to get a reasonable amount of testing before they're exposed to the general public. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
29 lines
530 B
C
29 lines
530 B
C
/*
|
|
* Copyright (C) 2004 Jeff Dike (jdike@karaya.com)
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#ifndef AIO_H__
|
|
#define AIO_H__
|
|
|
|
enum aio_type { AIO_READ, AIO_WRITE, AIO_MMAP };
|
|
|
|
struct aio_thread_reply {
|
|
void *data;
|
|
int err;
|
|
};
|
|
|
|
struct aio_context {
|
|
int reply_fd;
|
|
struct aio_context *next;
|
|
};
|
|
|
|
#define INIT_AIO_CONTEXT { .reply_fd = -1, \
|
|
.next = NULL }
|
|
|
|
extern int submit_aio(enum aio_type type, int fd, char *buf, int len,
|
|
unsigned long long offset, int reply_fd,
|
|
struct aio_context *aio);
|
|
|
|
#endif
|