diff options
author | Ming Lei <tom.leiming@gmail.com> | 2008-12-12 21:38:45 +0800 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-01-06 09:28:46 +1100 |
commit | b3ca50cc8eedb9b8b954803fa58f006c8e30b5f6 (patch) | |
tree | 5a9cdc01dcf67e3b4a9092a2d7ef5b018ccbb0dc /include/linux | |
parent | c9b03900842b0bb66b7cc8917fda332251370e28 (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')
-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 { struct kref kref; /* reference count of the URB */ void *hcpriv; /* private data for host controller */ atomic_t use_count; /* concurrent submissions counter */ - u8 reject; /* submissions will fail */ + atomic_t reject; /* submissions will fail */ int unlinked; /* unlink error code */ /* public: documented fields in the urb that can be used by drivers */ |