Re: f_ops flag to speed up compatible ioctls in linux kernel

Roland Dreier
2004-09-01T21:49:58Z

Michael> Now that I look at the ioctl.c code, I see a several
Michael> get_user/put_user inside the ioctl which are thus done
Michael> while BKL is held. But I thought get_user can block?

Michael> Why is this not a bug?

It's fine to sleep while holding the BKL (it will be dropped and then
reacquired when the process wakes up).

- Roland