[Libsysio-commit] HEAD: libsysio/src ioctx.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-06-16 13:58:36
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29040/src Modified Files: ioctx.c Log Message: Changes from Nik Livic and myself to support accounting on Red Storm. NB: We are tracking chars transferred to/from the underlying driver and not what is moved over the wire. Index: ioctx.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/ioctx.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -b -B -p -r1.14 -r1.15 --- ioctx.c 28 May 2004 12:48:26 -0000 1.14 +++ ioctx.c 16 Jun 2004 13:58:27 -0000 1.15 @@ -53,6 +53,12 @@ #include "inode.h" #include "xtio.h" + +#if defined(REDSTORM) +#include "do_iostats.h" +#endif + + /* * Asynchronous IO context support. */ @@ -229,6 +235,10 @@ _sysio_ioctx_complete(struct ioctx *ioct { struct ioctx_callback *entry; + + /* update IO stats */ + _SYSIO_UPDACCT(ioctx->ioctx_write, ioctx); + /* * Run the call-back queue. */ |