On Mon, Mar 26, 2012 at 08:51:28PM +0000, Keller, Jacob E wrote:
This is about a case where the user does something stupid. (runs the ioctls too
fast). It appears that your answer is something like "The user did something
stupid, we shouldn't care". My answer is, "we should do what we can to prevent
this."
No matter how much you optimize your driver (or library or whatever),
there is always some user load that will kill your performance.
The locking is need for data integrity. The code path in the lock is
short. I doubt there is any serious performance issue here.
Richard