public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/char/pcmcia/synclink_cs.c: BKL pushdown?
@ 2009-10-02 10:37 lenrek
  2009-10-02 11:49 ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: lenrek @ 2009-10-02 10:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: lenrek

I found the counterpart of function mgslpc_wait_until_sent
in drivers/char/synclinkmp.c (wait_until_sent) is modified to
issue (un)lock_kernel.  This patch does the same modification.

However, I'm afraid similar modifications are necessary further on  
functions
mgslpc_ioctl and mgslpc_write_room.



--- linux-2.6.31.1/drivers/char/pcmcia/synclink_cs.c	2009-10-02  
17:01:23.000000000 +0900
+++ linux/drivers/char/pcmcia/synclink_cs.c	2009-10-02  
17:23:59.000000000 +0900
@@ -2442,6 +2442,8 @@
  	if (!info )
  		return;

+	lock_kernel();
+
  	if (debug_level >= DEBUG_LEVEL_INFO)
  		printk("%s(%d):mgslpc_wait_until_sent(%s) entry\n",
  			 __FILE__,__LINE__, info->device_name );
@@ -2490,6 +2492,7 @@
  	}

  exit:
+	unlock_kernel();
  	if (debug_level >= DEBUG_LEVEL_INFO)
  		printk("%s(%d):mgslpc_wait_until_sent(%s) exit\n",
  			 __FILE__,__LINE__, info->device_name );


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-02 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-02 10:37 [PATCH] drivers/char/pcmcia/synclink_cs.c: BKL pushdown? lenrek
2009-10-02 11:49 ` Alan Cox
2009-10-02 13:20   ` Paul Fulghum
2009-10-02 14:12     ` lenrek
2009-10-02 15:33       ` Paul Fulghum
2009-10-02 16:12         ` lenrek
2009-10-02 19:11           ` Paul Fulghum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox