summaryrefslogtreecommitdiff
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2007-10-11 16:47:36 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 14:55:35 -0700
commitd1aa3e6aa8edfeb864af7c930523d9e588b28bea (patch)
tree1ad0e6ead73cccc43dd1c1997aabb25acb4970d2 /fs/ocfs2
parent58ed7b94d98245fbad54a0af7ea3317ab1dd6876 (diff)
USB: fix race in autosuspend reschedule
This patch (as1002) fixes a small race which can occur when a driver expects usbcore to reschedule an autosuspend request. If the request arrives too late, it won't be rescheduled. The patch adds an extra argument to autosuspend_check(), indicating that a reschedule is needed no matter how much time has elapsed. It also tries to avoid letting asynchronous changes to the value of jiffies cause a delay to become negative, by caching a local copy of the current time. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ocfs2')
0 files changed, 0 insertions, 0 deletions