Re: Locking issues w/ functionfs gadget and aio?

2015-07-01 Thread Andrzej Pietrasiewicz
W dniu 22.06.2015 o 19:20, John Stultz pisze: On Sat, Jun 20, 2015 at 10:24 PM, Al Viro wrote: On Fri, Jun 12, 2015 at 05:51:12PM -0700, John Stultz wrote: I'm not super sure what the right fix is, but if do something like the following (sorry, whitespace corrupted via copy/paste), I don't se

Re: Locking issues w/ functionfs gadget and aio?

2015-06-22 Thread John Stultz
On Sat, Jun 20, 2015 at 10:24 PM, Al Viro wrote: > On Fri, Jun 12, 2015 at 05:51:12PM -0700, John Stultz wrote: > >> I'm not super sure what the right fix is, but if do something like the >> following (sorry, whitespace corrupted via copy/paste), I don't seem >> to run into the problem. > > Looks

Re: Locking issues w/ functionfs gadget and aio?

2015-06-20 Thread Al Viro
On Fri, Jun 12, 2015 at 05:51:12PM -0700, John Stultz wrote: > I'm not super sure what the right fix is, but if do something like the > following (sorry, whitespace corrupted via copy/paste), I don't seem > to run into the problem. Looks sane. Which tree would you prefer it to go through, vfs or

Re: Locking issues w/ functionfs gadget and aio?

2015-06-12 Thread John Stultz
On Mon, Jun 8, 2015 at 6:14 PM, John Stultz wrote: > After setting up functionfs for adb w/ 4.1-rc7, I noticed some flakey > behavior. > I enabled some lock debugging and got the following: > > [ 91.648093] read strings > [ 91.650264] g_ffs gadget: g_ffs ready > [ 91.652551] ci_hdrc ci_hdrc

Locking issues w/ functionfs gadget and aio?

2015-06-08 Thread John Stultz
After setting up functionfs for adb w/ 4.1-rc7, I noticed some flakey behavior. I enabled some lock debugging and got the following: [ 91.648093] read strings [ 91.650264] g_ffs gadget: g_ffs ready [ 91.652551] ci_hdrc ci_hdrc.0: CI_HDRC_CONTROLLER_RESET_EVENT received [ 96.068693] BUG: sp