USB: gadget: f_mtp: MTP driver cleanup:
authorMike Lockwood <lockwood@android.com>
Mon, 8 Nov 2010 15:41:31 +0000 (10:41 -0500)
committerMike Lockwood <lockwood@android.com>
Thu, 11 Nov 2010 00:32:08 +0000 (19:32 -0500)
commit4084477809d9f89bcb8b72ed4ada66b8c0dfb394
tree72a2f32cf69c29b1fe3836ff11ee7cd02d8c343e
parent901204dc1797ec61c066ce9afecc56d6e874c187
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