Commit b7e3e1fb authored by Jonathan Corbet's avatar Jonathan Corbet

mpt: fasync BKL pushdown

It looks like this driver really needs the BKL here.
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 9465efc9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment