diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2005-11-09 16:59:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 13:48:30 -0800 |
commit | 87c4252a35310fdbb2aabb880a39b83f83cadf62 (patch) | |
tree | e1e5588651b6652696b9f4e81bb1776b1e4a4778 /Documentation/ftape.txt | |
parent | c9a50cc9318772e62d56f2a9172bdfda72bdacbe (diff) |
[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>
Diffstat (limited to 'Documentation/ftape.txt')
0 files changed, 0 insertions, 0 deletions