Mtp: splite ioctl lock into operation lock and event lock
authorliuji <liuji@rock-chips.com>
Tue, 20 Dec 2011 04:42:21 +0000 (12:42 +0800)
committerliuji <liuji@rock-chips.com>
Tue, 20 Dec 2011 04:42:21 +0000 (12:42 +0800)
commit35ab4255763b59c9bc7833cc836c432c586849d4
tree65f240357487c3fce0a8f87265040e09ee3daf4f
parenteb6185eb408757457179f6db4ba244df46daadda
Mtp: splite ioctl lock into operation lock and event lock

Fix bug: operation and event cannot work concurrently.
remove/rename a file in android file explorer during coping/receiving
a large file to/from mtp device from pc, after all the operations
done, change in android would be ignore in pc explorer, because
file change event was block by the long operation and failed to send to
pc.
drivers/usb/gadget/f_mtp.c