Hi!
I believe this is nicer way to get same optimalization... But I'm not
100% sure.
Pavel
--- clean/drivers/usb/storage/usb.c Fri Sep 14 23:04:07 2001
+++ linux/drivers/usb/storage/usb.c Thu Oct 25 13:25:41 2001
@@ -298,15 +298,6 @@
lock_kernel();
- /*
- * This thread doesn't need any user-level access,
- * so get rid of all our resources..
- */
- exit_files(current);
- current->files = init_task.files;
- atomic_inc(¤t->files->count);
- daemonize();
-
/* set our name for identification purposes */
sprintf(current->comm, "usb-storage-%d", us->host_number);
@@ -972,7 +963,7 @@
/* start up our control thread */
ss->pid = kernel_thread(usb_stor_control_thread, ss,
- CLONE_VM);
+ CLONE_FS | CLONE_FILES | CLONE_SIGNAL |
+CLONE_VM);
if (ss->pid < 0) {
printk(KERN_WARNING USB_STORAGE
"Unable to start control thread\n");
--
"I do not steal MS software. It is not worth it."
-- Pavel Kankovsky
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel