Commit 491d4186 authored by Mike Lockwood's avatar Mike Lockwood Committed by Colin Cross
Browse files

USB: gadget: f_mtp: MTP driver cleanup:



Use a work queue instead of a separate thread for file transfer ioctls
(note: the file transfer must be done on a kernel thread rather than in
process context so vfs_read and vfs_write will use the correct address space
for the buffers)

Enforce requirement that only one ioctl call may be active at a time,
and remove mutex in mtp_send_event that is now no longer necessary.

Synchronize around use of shared variables to avoid SMP issues

Fix mismatched calls to fget and fput

Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent ffab952c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment