USB: gadget: f_mtp: MTP driver cleanup:
authorMike Lockwood <lockwood@android.com>
Mon, 8 Nov 2010 15:41:31 +0000 (10:41 -0500)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:03:24 +0000 (12:03 -0800)
commit12b9e8a28760e1ba21ef74871e221ee781a92a2c
tree9f66e3f305f1ef9bebb8683dc47946da4bbbb54a
parent72ffa25a634e3762238023c61247244753cbe9b3
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: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/f_mtp.c