summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/Makefile
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@ti.com>2013-11-08 06:20:52 +0100
committerFelipe Balbi <balbi@ti.com>2013-11-25 18:34:09 +0100
commit2cf93bea3d7b2dbf1e0ebfa9d381aad1b637e2aa (patch)
tree075e087c384b74a833f9e2c606368179eae7354d /drivers/usb/gadget/Makefile
parentusb: gadget: tcm_usb_gadget: mark bot_cleanup_old_alt static (diff)
downloadlinux-2cf93bea3d7b2dbf1e0ebfa9d381aad1b637e2aa.tar.xz
linux-2cf93bea3d7b2dbf1e0ebfa9d381aad1b637e2aa.zip
usb: gadget: f_mass_storage: call try_to_freeze only when its safe
Call try_to_freeze() in sleep_thread() only when it's safe to sleep. do_read() and do_write() calls sleep_thread with lock held. Make sure these won't call try_to_freeze() by passing can_freeze flag to sleep_thread. Calling try_to_freeze() with a lock hold was done since day one in f_mass_storage but since commit 0f9548ca1 ("lockdep: check that no locks held at freeze time") lockdep complains about it. Signed-off-by: George Cherian <george.cherian@ti.com> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/Makefile')
0 files changed, 0 insertions, 0 deletions