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

From: Chris Wright
Date: Wed Sep 01 2004 - 17:17:04 EST


* Michael S. Tsirkin (mst@xxxxxxxxxxxxxx) wrote:
> Now that I look at the ioctl.c code, I see a several get_user/put_user
> inside the ioctl which are thus done while BKL is held.
> But I thought get_user can block?
>
> Why is this not a bug?

Look at release_kernel_lock, esp. in kernel/sched.c.
-chris
-
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/