patch-2.3.22 linux/drivers/scsi/scsi_error.c

Next file: linux/drivers/scsi/sgiwd93.c
Previous file: linux/drivers/scsi/mac53c94.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.21/linux/drivers/scsi/scsi_error.c linux/drivers/scsi/scsi_error.c
@@ -1762,33 +1762,21 @@
 	int rtn;
 	DECLARE_MUTEX_LOCKED(sem);
 	unsigned long flags;
-	struct fs_struct *fs;
+
+	siginitsetinv(&current->blocked, SHUTDOWN_SIGS);
 
 	lock_kernel();
 
 	/*
-	 * If we were started as result of loading a module, close all of the
-	 * user space pages.  We don't need them, and if we didn't close them
-	 * they would be locked into memory.
+	 *	Flush resources
 	 */
-	exit_mm(current);
-
-	current->session = 1;
-	current->pgrp = 1;
-
-	/* Become as one with the init task */
-
-	exit_fs(current);	/* current->fs->count--; */
-	fs = init_task.fs;
-	current->fs = fs;
-	atomic_inc(&fs->count);
-
-	siginitsetinv(&current->blocked, SHUTDOWN_SIGS);
-
-
+	 
+	daemonize();
+	
 	/*
 	 * Set the name of this process.
 	 */
+
 	sprintf(current->comm, "scsi_eh_%d", host->host_no);
 
 	host->eh_wait = &sem;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)