Hi, On Mon, Oct 06, 2014 at 01:25:14PM +0200, Robert Baldyga wrote: > Since we can compose gadgets from many functions, there is the problem > related to gadget breakage while FunctionFS daemon being closed. In some > cases it's strongly desired to keep gadget alive for a while, despite > FunctionFS files are closed, to allow another functions to complete > some presumably critical operations. > > For this purpose this patch introduces "zombie" mode. It can be enabled > by setting mount option "zombie=1", and results with defering function > closure to the moment of reopening ep0 file or filesystem umount. > > When ffs->state == FFS_ZOMBIE: > - function is still binded and visible to host, > - setup requests are automatically stalled, > - all another transfers are refused, > - opening ep0 causes function close, and then FunctionFS is ready for > descriptors and string write, > - umount of functionfs cause function close. > > Signed-off-by: Robert Baldyga <r.baldyga@xxxxxxxxxxx> Can you further explain how do you trigger this ? Do I understand correctly that you composed a gadget using configfs and that gadget has functionfs + another gadget ? Then what do you need to do the trigger the issue, and what really _is_ the issue ? Is gadget disconnecting from host too early ? Do you see a crash ? Memory leak ? Any logs available ? Any steps to reproduce ? Quite frankly, I don't really like this "zombie" mode. <joke> I know there's a "The Walking Dead" hype right now, but this is too much. </joke> Anyway, please giver me further details of how to get this done. -- balbi
Attachment:
signature.asc
Description: Digital signature