It looks like this driver really needs the BKL here.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
mptctl_fasync(int fd, struct file *filep, int mode)
{
MPT_ADAPTER *ioc;
mptctl_fasync(int fd, struct file *filep, int mode)
{
MPT_ADAPTER *ioc;
list_for_each_entry(ioc, &ioc_list, list)
ioc->aen_event_read_flag=0;
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;