Some of these cases should be safe in a non-atomic fashion, however since all of the driver ioctls are locked, a lot of work is required to fix it correctly. Just don't sleep now. MFC after: 2 weeks
This is required for the VIA driver and at least some parts are needed for GEM. MFC after: 2 weeks