Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f50e39e1 authored by Manu Gautam's avatar Manu Gautam
Browse files

usb: gadget: f_mtp: Optimize usage of read_mutex



Driver currently acquires and releases read_mutex multiple
times during single file transfer operation resulting in
throughput degradation. Fix this by holding mutex for
longer times without releasing it as it is perfectly fine
to call usb_ep_queue() while holding a mutex.

Change-Id: Ic235fb92997993bd75ed5e519a5d73e787522810
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent 16232cca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment