diff options
author | Ming Lei <tom.leiming@gmail.com> | 2008-12-12 08:38:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 13:00:08 -0500 |
commit | 49367d8f1d9f26482cf7089489e90f0afd0a942c (patch) | |
tree | e0b8beb733f49772f258f90ce7af856a10fbdaac /include/linux/usb.h | |
parent | 3b23dd6f8a718e5339de4f7d86ce76a078b5f771 (diff) |
USB: mark "reject" field of struct urb as atomic_t
It is enough to protect accesses to reject field of urb
by marking it as atomic_t,also it is the only reason of
existence of usb_reject_lock,so remove the lock to make
code more clean.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index e9d63562325a..4e8654a18250 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -1340,7 +1340,7 @@ struct urb { | |||
1340 | struct kref kref; /* reference count of the URB */ | 1340 | struct kref kref; /* reference count of the URB */ |
1341 | void *hcpriv; /* private data for host controller */ | 1341 | void *hcpriv; /* private data for host controller */ |
1342 | atomic_t use_count; /* concurrent submissions counter */ | 1342 | atomic_t use_count; /* concurrent submissions counter */ |
1343 | u8 reject; /* submissions will fail */ | 1343 | atomic_t reject; /* submissions will fail */ |
1344 | int unlinked; /* unlink error code */ | 1344 | int unlinked; /* unlink error code */ |
1345 | 1345 | ||
1346 | /* public: documented fields in the urb that can be used by drivers */ | 1346 | /* public: documented fields in the urb that can be used by drivers */ |