Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226904
b: refs/heads/master
c: 00cb636
h: refs/heads/master
v: v3
  • Loading branch information
Michal Nazarewicz authored and Greg Kroah-Hartman committed Nov 11, 2010
1 parent 6c91bcc commit 8c10d1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe52f7922c446b2f604ef609153f1cef0ea17278
refs/heads/master: 00cb636ed87a65b512012ea4236348af19daef1e
5 changes: 1 addition & 4 deletions trunk/drivers/usb/gadget/f_mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2657,7 +2657,7 @@ static int fsg_main_thread(void *common_)
up_write(&common->filesem);
}

/* Let the unbind and cleanup routines know the thread has exited */
/* Let fsg_unbind() know the thread has exited */
complete_and_exit(&common->thread_notifier, 0);
}

Expand Down Expand Up @@ -2906,9 +2906,6 @@ static void fsg_common_release(struct kref *ref)
if (common->state != FSG_STATE_TERMINATED) {
raise_exception(common, FSG_STATE_EXIT);
wait_for_completion(&common->thread_notifier);

/* The cleanup routine waits for this completion also */
complete(&common->thread_notifier);
}

if (likely(common->luns)) {
Expand Down

0 comments on commit 8c10d1c

Please sign in to comment.