11783b142b
remove alot of overly verbose debugging statements. ioproclist { int aioprocflags; /* AIO proc flags */ TAILQ_ENTRY(aioproclist) list; /* List of processes */ struct proc *aioproc; /* The AIO thread */ TAILQ_HEAD (,aiocblist) jobtorun; /* suggested job to run */ }; /* * data-structure for lio signal management */ struct aio_liojob { int lioj_flags; int lioj_buffer_count; int lioj_buffer_finished_count; int lioj_queue_count; int lioj_queue_finished_count; struct sigevent lioj_signal; /* signal on all I/O done */ TAILQ_ENTRY (aio_liojob) lioj_list; struct kaioinfo *lioj_ki; }; #define LIOJ_SIGNAL 0x1 /* signal on all done (lio) */ #define LIOJ_SIGNAL_POSTED 0x2 /* signal has been posted */ /* * per process aio data structure */ struct kaioinfo { int kaio_flags; /* per process kaio flags */ int kaio_maxactive_count; /* maximum number of AIOs */ int kaio_active_count; /* number of currently used AIOs */ int kaio_qallowed_count; /* maxiumu size of AIO queue */ int kaio_queue_count; /* size of AIO queue */ int kaio_ballowed_count; /* maximum number of buffers */ int kaio_queue_finished_count; /* number of daemon jobs finished */ int kaio_buffer_count; /* number of physio buffers */ int kaio_buffer_finished_count; /* count of I/O done */ struct proc *kaio_p; /* process that uses this kaio block */ TAILQ_HEAD (,aio_liojob) kaio_liojoblist; /* list of lio jobs */ TAILQ_HEAD (,aiocblist) kaio_jobqueue; /* job queue for process */ TAILQ_HEAD (,aiocblist) kaio_jobdone; /* done queue for process */ TAILQ_HEAD (,aiocblist) kaio_bufqueue; /* buffer job queue for process */ TAILQ_HEAD (,aiocblist) kaio_bufdone; /* buffer done queue for process */ }; #define KAIO_RUNDOWN 0x1 /* process is being run down */ #define KAIO_WAKEUP 0x2 /* wakeup process when there is a significant event */ TAILQ_HEAD (,aioproclist) aio_freeproc, aio_activeproc; TAILQ_HEAD(,aiocblist) aio_jobs; /* Async job list */ TAILQ_HEAD(,aiocblist) aio_bufjobs; /* Phys I/O job list */ TAILQ_HEAD(,aiocblist) aio_freejobs; /* Pool of free jobs */ static void aio_init_aioinfo(struct proc *p) ; static void aio_onceonly(void *) ; static int aio_free_entry(struct aiocblist *aiocbe); static void aio_process(struct aiocblist *aiocbe); static int aio_newproc(void) ; static int aio_aqueue(struct proc *p, struct aiocb *job, int type) ; static void aio_physwakeup(struct buf *bp); static int aio_fphysio(struct proc *p, struct aiocblist *aiocbe, int type); static int aio_qphysio(struct proc *p, struct aiocblist *iocb); static void aio_daemon(void *uproc); SYSINIT(aio, SI_SUB_VFS, SI_ORDER_ANY, aio_onceonly, NULL); static vm_zone_t kaio_zone=0, aiop_zone=0, aiocb_zone=0, aiol_zone=0, aiolio_zone=0; /* * Single AIOD vmspace shared amongst all of them */ static struct vmspace *aiovmspace = NULL; /* * Startup initialization */ void aio_onceonly(void *na) { TAILQ_INIT(&aio_freeproc); TAILQ_INIT(&aio_activeproc); TAILQ_INIT(&aio_jobs); TAILQ_INIT(&aio_bufjobs); TAILQ_INIT(&aio_freejobs); kaio_zone = zinit("AIO", sizeof (struct kaioinfo), 0, 0, 1); aiop_zone = zinit("AIOP", sizeof (struct aioproclist), 0, 0, 1); aiocb_zone = zinit("AIOCB", sizeof (struct aiocblist), 0, 0, 1); aiol_zone = zinit("AIOL", AIO_LISTIO_MAX * sizeof (int), 0, 0, 1); aiolio_zone = zinit("AIOLIO", AIO_LISTIO_MAX * sizeof (struct aio_liojob), 0, 0, 1); aiod_timeout = AIOD_TIMEOUT_DEFAULT; aiod_lifetime = AIOD_LIFETIME_DEFAULT; jobrefid = 1; } /* * Init the per-process aioinfo structure. * The aioinfo limits are set per-process for user limit (resource) management. */ void aio_init_aioinfo(struct proc *p) { struct kaioinfo *ki; if (p->p_aioinfo == NULL) { ki = zalloc(kaio_zone); p->p_aioinfo = ki |
||
---|---|---|
.. | ||
imgact_aout.c | ||
imgact_elf.c | ||
imgact_gzip.c | ||
imgact_shell.c | ||
inflate.c | ||
init_main.c | ||
init_sysent.c | ||
init_sysvec.c | ||
kern_acct.c | ||
kern_clock.c | ||
kern_conf.c | ||
kern_descrip.c | ||
kern_exec.c | ||
kern_exit.c | ||
kern_fork.c | ||
kern_intr.c | ||
kern_ktrace.c | ||
kern_linker.c | ||
kern_lkm.c | ||
kern_lock.c | ||
kern_lockf.c | ||
kern_malloc.c | ||
kern_mib.c | ||
kern_module.c | ||
kern_ntptime.c | ||
kern_opt.c | ||
kern_physio.c | ||
kern_proc.c | ||
kern_prot.c | ||
kern_random.c | ||
kern_resource.c | ||
kern_shutdown.c | ||
kern_sig.c | ||
kern_subr.c | ||
kern_synch.c | ||
kern_sysctl.c | ||
kern_tc.c | ||
kern_threads.c | ||
kern_time.c | ||
kern_timeout.c | ||
kern_xxx.c | ||
link_aout.c | ||
Make.tags.inc | ||
Makefile | ||
makesyscalls.sh | ||
md5c.c | ||
subr_autoconf.c | ||
subr_clist.c | ||
subr_disklabel.c | ||
subr_diskmbr.c | ||
subr_diskslice.c | ||
subr_dkbad.c | ||
subr_log.c | ||
subr_param.c | ||
subr_prf.c | ||
subr_prof.c | ||
subr_rlist.c | ||
subr_smp.c | ||
subr_trap.c | ||
subr_xxx.c | ||
sys_generic.c | ||
sys_pipe.c | ||
sys_process.c | ||
sys_socket.c | ||
syscalls.c | ||
syscalls.master | ||
sysv_ipc.c | ||
sysv_msg.c | ||
sysv_sem.c | ||
sysv_shm.c | ||
tty_compat.c | ||
tty_conf.c | ||
tty_cons.c | ||
tty_pty.c | ||
tty_snoop.c | ||
tty_subr.c | ||
tty_tb.c | ||
tty_tty.c | ||
tty.c | ||
uipc_domain.c | ||
uipc_mbuf.c | ||
uipc_proto.c | ||
uipc_sockbuf.c | ||
uipc_socket2.c | ||
uipc_socket.c | ||
uipc_syscalls.c | ||
uipc_usrreq.c | ||
vfs_aio.c | ||
vfs_bio.c | ||
vfs_cache.c | ||
vfs_cluster.c | ||
vfs_conf.c | ||
vfs_default.c | ||
vfs_export.c | ||
vfs_extattr.c | ||
vfs_init.c | ||
vfs_lookup.c | ||
vfs_mount.c | ||
vfs_subr.c | ||
vfs_syscalls.c | ||
vfs_vnops.c | ||
vnode_if.pl | ||
vnode_if.sh | ||
vnode_if.src |