[PATCH 08/20] epca: Kill the big kernel lock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Wednesday, May 5, 2010 - 3:02 am

The lock is no longer needed for wait until sent paths so this can go

Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 drivers/char/epca.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)


diff --git a/drivers/char/epca.c b/drivers/char/epca.c
index 6f5ffe1..d9df46a 100644
--- a/drivers/char/epca.c
+++ b/drivers/char/epca.c
@@ -36,7 +36,7 @@
 #include <linux/ctype.h>
 #include <linux/tty.h>
 #include <linux/tty_flip.h>
-#include <linux/smp_lock.h>
+#include <linux/slab.h>
 #include <linux/ioport.h>
 #include <linux/interrupt.h>
 #include <linux/uaccess.h>
@@ -2105,7 +2105,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file,
 		break;
 	case DIGI_SETAW:
 	case DIGI_SETAF:
-		lock_kernel();
 		if (cmd == DIGI_SETAW) {
 			/* Setup an event to indicate when the transmit
 			   buffer empties */
@@ -2118,7 +2117,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file,
 			if (tty->ldisc->ops->flush_buffer)
 				tty->ldisc->ops->flush_buffer(tty);
 		}
-		unlock_kernel();
 		/* Fall Thru */
 	case DIGI_SETA:
 		if (copy_from_user(&ch->digiext, argp, sizeof(digi_t)))

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 01/20] stallion: prune lock_kernel calls, Alan Cox, (Wed May 5, 3:01 am)
[PATCH 03/20] riscom8: kill use of lock_kernel, Alan Cox, (Wed May 5, 3:01 am)
[PATCH 04/20] isicom: kill off the BKL, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 05/20] rocket: kill BKL, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 06/20] synclink: kill the big kernel lock, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 07/20] cyclades: Kill off BKL usage, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 08/20] epca: Kill the big kernel lock, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 09/20] specialix; Kill the BKL, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 10/20] synclink: reworking locking a bit, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 14/20] vc: Locking clean up, Alan Cox, (Wed May 5, 3:02 am)
[PATCH 15/20] tty: Make vt's have a tty_port, Alan Cox, (Wed May 5, 3:03 am)
[PATCH 18/20] serial: add port helpers, Alan Cox, (Wed May 5, 3:03 am)
[PATCH 20/20] serial: Use block_til_ready helper, Alan Cox, (Wed May 5, 3:03 am)