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

From: Roland Dreier
Date: Wed Sep 01 2004 - 16:54:44 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/