for (f = &filp[0]; f < &filp[NR_FILPS]; f++) {
assert(f->filp_count >= 0);
if (f->filp_count == 0 && mutex_trylock(&f->filp_lock) == 0) {
- if (verbose) printf("get_fd: locking filp=%p\n", f);
f->filp_mode = bits;
f->filp_pos = cvu64(0);
f->filp_selectors = 0;
vp = filp->filp_vno;
assert(vp != NULL);
- if (verbose)
- printf("lock_filp: filp=%p locking vnode %p with locktype %d\n", filp,
- vp, locktype);
-
/* Lock vnode only if we haven't already locked it. If already locked by us,
* we're allowed to have one additional 'soft' lock. */
if (tll_locked_by_me(&vp->v_lock)) {
# define scratch(p) (scratchpad[((int) ((p) - fproc))])
EXTERN struct worker_thread *self;
EXTERN int force_sync; /* toggle forced synchronous communication */
-EXTERN int verbose;
EXTERN int deadlock_resolving;
EXTERN mutex_t exec_lock;
EXTERN mutex_t bsf_lock;/* Global lock for access to block special files */
sef_local_startup();
printf("Started AVFS: %d worker thread(s)\n", NR_WTHREADS);
- verbose = 0;
/* This is the main loop that gets work, processes it, and sends replies. */
while (TRUE) {
struct vmnt *vmp;
struct fproc *rfp;
- if (verbose) printf("VFS: reply to request!\n");
if ((vmp = find_vmnt(who_e)) == NULL)
panic("Couldn't find vmnt for endpoint %d", who_e);
/* Clean up worker thread. Skip parts if this thread is not associated
* with a particular process (i.e., rfp is NULL) */
- if (verbose) printf("AVFS: thread %d is cleaning up for fp=%p (%s:%d)\n",
- mthread_self(), rfp, f, l);
-
assert(mthread_self() != -1);
#if LOCK_DEBUG
int r, found_one, proc_p;
register struct fproc *rp;
- if (verbose) printf("VFS: get_work looking for work\n");
-
while (reviving != 0) {
found_one = FALSE;
if (m_in.m_type == EDEADSRCDST) return; /* Failed 'sendrec' */
- if (verbose) printf("AVFS: got work from %d (fp=%p)\n", m_in.m_source,
- fp);
-
/* Negative who_p is never used to access the fproc array. Negative
* numbers (kernel tasks) are treated in a special way.
*/
{
int r, slot;
- if (verbose) printf("service_pm: %d (%d)\n", call_nr, mthread_self());
switch (call_nr) {
case PM_SETUID:
pm_setuid(m_in.PM_PROC, m_in.PM_EID, m_in.PM_RID);
tllp->t_owner = NULL;
}
- if (verbose) {
- printf("got lock on tllp=%p with type %d (self=%p)\n", tllp,
- locktype, self);
- }
-
/* Due to the way upgrading and downgrading works, read-only requests are
* scheduled to run after a downgraded lock is released (because they are
* queued on the write-only queue which has priority). This results from the