Skip to content

Commit

Permalink
mpt: fasync BKL pushdown
Browse files Browse the repository at this point in the history
It looks like this driver really needs the BKL here.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Jonathan Corbet committed Jul 2, 2008
1 parent 9465efc commit b7e3e1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/message/fusion/mptctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7e3e1f

Please sign in to comment.