From: lenrek@me.com
To: linux-kernel@vger.kernel.org
Cc: lenrek@me.com
Subject: [PATCH] drivers/char/pcmcia/synclink_cs.c: BKL pushdown?
Date: Fri, 02 Oct 2009 19:37:21 +0900 [thread overview]
Message-ID: <060E5EC8-93F4-4AF1-889F-04A13378CB8D@me.com> (raw)
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 );
next reply other threads:[~2009-10-02 11:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-02 10:37 lenrek [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=060E5EC8-93F4-4AF1-889F-04A13378CB8D@me.com \
--to=lenrek@me.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®