On Wednesday 07 July 2010, Christoph Hellwig wrote: > > Looking at this again I don't like the foo_unlock_ioctl naming you're > adding. Just rename the existing ioctl routines to foo_locked_ioctl > or move the lock_kernel/unlock_kernel calls into the function, which > would be even better. Good point. I followed the naming that I used for the file_operations conversion, but since the block_device_operations don't use .unlocked_ioctl, the naming you suggested is better. I've now changed the sr.c and sd.c to use include the lock_kernel() call directly in their ioctl functions. For the various floppy drivers, I'd prefer using separate wrappers because these drivers are mostly legacy and any subtle bugs introduced could probably go unnoticed for years. As I mentioned to Sam, I'm more confident with the wrapper than rewriting a longish function that I can't test. I also now changed the i2o_block driver ioctl function but split that out into a separate patch, since I found two more existing issues with that function that I'm addressing at the same time. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html