Re: 2.4.2-ac3: loop threads in D state

From: Jens Axboe (axboe@suse.de)
Date: Sun Feb 25 2001 - 17:39:57 EST


On Sun, Feb 25 2001, Nate Eldredge wrote:
> Nate Eldredge writes:
> > Kernel 2.4.2-ac3.
> >
> > FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND
> > 40 0 425 1 -1 -20 0 0 down DW< ? 0:00 (loop0)
>
> It looks like this has been addressed in the thread "242-ac3 loop
> bug". Jens Axboe posted a patch, but the list archive I'm reading
> mangled it. Jens, could you make this patch available somewhere, or
> at least email me a copy? (If it's going in an upcoming -ac patch,
> then don't bother; I can wait until then.)

Patch is here, I haven't checked whether Alan put it in ac4 yet (I
did cc him, but noone knows for sure :-).

-- 
Jens Axboe

--- drivers/block/loop.c~ Sat Feb 24 23:08:38 2001 +++ drivers/block/loop.c Sat Feb 24 23:11:13 2001 @@ -507,7 +507,7 @@ sprintf(current->comm, "loop%d", lo->lo_number); spin_lock_irq(&current->sigmask_lock); - siginitsetinv(&current->blocked, sigmask(SIGKILL)); + sigfillset(&current->blocked); flush_signals(current); spin_unlock_irq(&current->sigmask_lock); @@ -525,7 +525,7 @@ up(&lo->lo_sem); for (;;) { - down(&lo->lo_bh_mutex); + down_interruptible(&lo->lo_bh_mutex); if (!atomic_read(&lo->lo_pending)) break;

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:10 EST