Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108437
b: refs/heads/master
c: f0fa746
h: refs/heads/master
i:
  108435: 6637c8d
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Aug 14, 2008
1 parent 3299e84 commit a940c44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 230ffc75b7b842db5710d30d3a2fc61f9d6f50df
refs/heads/master: f0fa74634c0c686618b5318748bde233772a1a8d
7 changes: 6 additions & 1 deletion trunk/Documentation/usb/power-management.txt
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,12 @@ post_reset; the USB core guarantees that this is true of internal
suspend/resume events as well.

If a driver wants to block all suspend/resume calls during some
critical section, it can simply acquire udev->pm_mutex.
critical section, it can simply acquire udev->pm_mutex. Note that
calls to resume may be triggered indirectly. Block IO due to memory
allocations can make the vm subsystem resume a device. Thus while
holding this lock you must not allocate memory with GFP_KERNEL or
GFP_NOFS.

Alternatively, if the critical section might call some of the
usb_autopm_* routines, the driver can avoid deadlock by doing:

Expand Down

0 comments on commit a940c44

Please sign in to comment.