summaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2008-06-19 15:41:11 -0600
committerJonathan Corbet <corbet@lwn.net>2008-07-02 15:06:27 -0600
commitb7e3e1fbf69d1b6abfd337460ea17d7230e3a6e5 (patch)
tree3741a60c2e1f478e692d510d341354394b8928b8 /drivers/message
parent9465efc9e96135a2cec8154c0c766fa59984a298 (diff)
downloadop-kernel-dev-b7e3e1fbf69d1b6abfd337460ea17d7230e3a6e5.zip
op-kernel-dev-b7e3e1fbf69d1b6abfd337460ea17d7230e3a6e5.tar.gz
mpt: fasync BKL pushdown
It looks like this driver really needs the BKL here. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/message')
-rw-r--r--drivers/message/fusion/mptctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c
index e630b50..c594656 100644
--- 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
OpenPOWER on IntegriCloud