From: Jonathan Corbet Date: Thu, 19 Jun 2008 21:41:11 +0000 (-0600) Subject: mpt: fasync BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b7e3e1fbf69d1b6abfd337460ea17d7230e3a6e5;p=linux-2.6-omap-h63xx.git mpt: fasync BKL pushdown It looks like this driver really needs the BKL here. Signed-off-by: Jonathan Corbet --- diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index e630b50966e..c5946560c4e 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