lkml.org 
[lkml]   [2003]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectloop's kernel_thread
hi all
I'm being modified loop block device driver for multi files binded
to one loop device,
but the loop_thread sometimes seems locking the kernel.

static int loop_thread(void *data)
{
struct loop_device *lo = data;
struct buffer_head *bh;
daemonize();
exit_files(current);

printk(KERN_INFO "i am here\n");
sprintf(current->comm, "loop%i", lo->lo_number);

spin_lock_irq(&current->sigmask_lock);
sigfillset(&current->blocked);
flush_signals(current);
spin_unlock_irq(&current->sigmask_lock);

current->policy = SCHED_OTHER;
current->nice = -20;
.....
}
It seems that process name is still "mount" .It should be
"loop0,loop1,etc.", isn't it?
Anyone can help me?

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [from the cache]
©2003-2011 Jasper Spaans