[Libsysio-commit] strided-io: libsysio/src ioctx.c
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2004-01-13 17:18:09
|
Update of /cvsroot/libsysio/libsysio/src
In directory sc8-pr-cvs1:/tmp/cvs-serv31782
Modified Files:
Tag: strided-io
ioctx.c
Log Message:
-Made aioq static instead of globally visible
-Drop a reference to the inode in _sysio_complete -- Fast or not.
-Realized we have no need for a global aio queue. Ifdef'd it all out.
Index: ioctx.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/ioctx.c,v
retrieving revision 1.6
retrieving revision 1.6.6.1
diff -u -w -b -B -p -r1.6 -r1.6.6.1
--- ioctx.c 17 Oct 2003 21:30:29 -0000 1.6
+++ ioctx.c 13 Jan 2004 17:18:03 -0000 1.6.6.1
@@ -56,11 +56,13 @@
* Asynchronous IO context support.
*/
+#if 0
/*
* List of all outstanding (in-flight) asynch IO requests tracked
* by the system.
*/
-LIST_HEAD( ,ioctx) aioq;
+static LIST_HEAD( ,ioctx) aioq;
+#endif
/*
* Initialization. Must be called before using any other routine in this
@@ -70,7 +72,9 @@ int
_sysio_ioctx_init()
{
+#if 0
LIST_INIT(&aioq);
+#endif
return 0;
}
@@ -104,10 +108,12 @@ _sysio_ioctx_new(struct inode *ino,
iovlen,
offset);
+#if 0
/*
* Link request onto the outstanding requests queue.
*/
LIST_INSERT_HEAD(&aioq, ioctx, ioctx_link);
+#endif
return ioctx;
}
@@ -133,7 +139,9 @@ _sysio_ioctx_cb(struct ioctx *ioctx,
entry->iocb_f = f;
entry->iocb_data = data;
+#if 0
TAILQ_INSERT_TAIL(&ioctx->ioctx_cbq, entry, iocb_next);
+#endif
return 0;
}
@@ -209,14 +217,17 @@ _sysio_ioctx_complete(struct ioctx *ioct
free(entry);
}
- if (ioctx->ioctx_fast)
- return;
-
+#if 0
/*
* Unlink from the file record's outstanding request queue.
*/
LIST_REMOVE(ioctx, ioctx_link);
+#endif
I_RELE(ioctx->ioctx_ino);
+
+ if (ioctx->ioctx_fast)
+ return;
+
free(ioctx);
}
|