Commit 254dae8f authored by James Bottomley's avatar James Bottomley

BKL removal for EH thread startup

From: Christoph Hellwig <hch@lst.de>

We don't need the BKL anymore for thread startup.

Patch rejections fixed up and
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent b7de3053
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/blkdev.h> #include <linux/blkdev.h>
#include <linux/smp_lock.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <scsi/scsi.h> #include <scsi/scsi.h>
...@@ -1601,8 +1600,6 @@ int scsi_error_handler(void *data) ...@@ -1601,8 +1600,6 @@ int scsi_error_handler(void *data)
int rtn; int rtn;
DECLARE_MUTEX_LOCKED(sem); DECLARE_MUTEX_LOCKED(sem);
lock_kernel();
/* /*
* Flush resources * Flush resources
*/ */
...@@ -1614,8 +1611,6 @@ int scsi_error_handler(void *data) ...@@ -1614,8 +1611,6 @@ int scsi_error_handler(void *data)
shost->eh_wait = &sem; shost->eh_wait = &sem;
shost->ehandler = current; shost->ehandler = current;
unlock_kernel();
/* /*
* Wake up the thread that created us. * Wake up the thread that created us.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment