Re: [PATCH] staging: axis-fifo: minimize lock duration in write
From: Greg Kroah-Hartman
Date: Mon Mar 09 2026 - 12:10:23 EST
On Sun, Mar 01, 2026 at 12:58:36AM +0000, Josh Law wrote:
> Memory allocation and copy from user space with vmemdup_user() is relatively slow and can sleep. Move it outside the lock to minimize the time the mutex is held, reducing contention for concurrent accesses.
Something happened with your line wrapping :(
And are you sure that your change works? What is wrong with grabbing
the lock this way?
thanks,
greg k-h