projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9465efc
)
mpt: fasync BKL pushdown
author
Jonathan Corbet
<corbet@lwn.net>
Thu, 19 Jun 2008 21:41:11 +0000
(15:41 -0600)
committer
Jonathan Corbet
<corbet@lwn.net>
Wed, 2 Jul 2008 21:06:27 +0000
(15:06 -0600)
It looks like this driver really needs the BKL here.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
drivers/message/fusion/mptctl.c
patch
|
blob
|
history
diff --git
a/drivers/message/fusion/mptctl.c
b/drivers/message/fusion/mptctl.c
index e630b50966ec5ba0192a36acb9e22a328e9b5675..c5946560c4e222a48b26e23cc275d78691cee1eb 100644
(file)
--- a/
drivers/message/fusion/mptctl.c
+++ b/
drivers/message/fusion/mptctl.c
@@
-548,11
+548,15
@@
static int
mptctl_fasync(int fd, struct file *filep, int mode)
{
MPT_ADAPTER *ioc;
+ int ret;
+ lock_kernel();
list_for_each_entry(ioc, &ioc_list, list)
ioc->aen_event_read_flag=0;
- return fasync_helper(fd, filep, mode, &async_queue);
+ ret = fasync_helper(fd, filep, mode, &async_queue);
+ unlock_kernel();
+ return ret;
}
static int