--- //depot/vendor/freebsd/src/sys/netsmb/smb_iod.c 2007/10/20 23:26:42 +++ //depot/user/attilio/attilio_schedlock/netsmb/smb_iod.c 2008/02/25 14:56:31 @@ -652,7 +652,6 @@ { struct smbiod *iod = arg; - mtx_lock(&Giant); /* * Here we assume that the thread structure will be the same * for an entire kthread (kproc, to be more precise) life. @@ -662,12 +661,10 @@ while ((iod->iod_flags & SMBIOD_SHUTDOWN) == 0) { smb_iod_main(iod); SMBIODEBUG("going to sleep for %d ticks\n", iod->iod_sleeptimo); -/* mtx_unlock(&Giant, MTX_DEF);*/ if (iod->iod_flags & SMBIOD_SHUTDOWN) break; tsleep(&iod->iod_flags, PWAIT, "90idle", iod->iod_sleeptimo); } -/* mtx_lock(&Giant, MTX_DEF);*/ kproc_exit(0); }