kernel-hacking-2024-linux-s.../drivers/usb/gadget
Alan Stern 87c4252a35 [PATCH] USB: file-storage gadget: Add reference count for children
This patch (as601) adds a proper reference count to the file-storage
gadget's main data structure, to keep track of references held by child
devices (LUNs in this case).  Before this, the driver would wait for
each child to be released before unbinding.

While there's nothing really wrong with that (you can't create a hang by
doing "rmmod g_file_storage </sys/.../lun0/ro" since the open file will
prevent rmmod from running), the code might as well follow the standard
procedures.  Besides, this shrinks the size of the structure by a few
words...  :-)

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-01-04 13:48:30 -08:00
..
config.c
dummy_hcd.c [PATCH] USB: fix build breakage in dummy_hcd.c 2005-11-17 11:29:52 -08:00
epautoconf.c
ether.c [PATCH] USB: gadget drivers - add .owner initialisation 2005-10-28 16:47:45 -07:00
file_storage.c [PATCH] USB: file-storage gadget: Add reference count for children 2006-01-04 13:48:30 -08:00
gadget_chips.h
goku_udc.c [PATCH] PCI: removed unneeded .owner field from struct pci_driver 2005-11-10 16:09:17 -08:00
goku_udc.h
inode.c
Kconfig
lh7a40x_udc.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
lh7a40x_udc.h [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
Makefile
ndis.h
net2280.c [PATCH] PCI: removed unneeded .owner field from struct pci_driver 2005-11-10 16:09:17 -08:00
net2280.h
omap_udc.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
omap_udc.h
pxa2xx_udc.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-11-11 09:24:26 -08:00
pxa2xx_udc.h [ARM] 3044/1: Fix sparse warnings about incompatible pointer types for register defined in pxa-regs.h 2005-10-28 15:26:42 +01:00
rndis.c [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
rndis.h
serial.c [PATCH] gfp_t: drivers/usb 2005-10-28 08:16:49 -07:00
usbstring.c
zero.c [PATCH] USB: gadget drivers - add .owner initialisation 2005-10-28 16:47:45 -07:00