USB: mark "reject" field of struct urb as atomic_t
authorMing Lei <tom.leiming@gmail.com>
Fri, 12 Dec 2008 13:38:45 +0000 (21:38 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 18:00:08 +0000 (10:00 -0800)
commit49367d8f1d9f26482cf7089489e90f0afd0a942c
treee0b8beb733f49772f258f90ce7af856a10fbdaac
parent3b23dd6f8a718e5339de4f7d86ce76a078b5f771
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>
drivers/usb/core/hcd.c
drivers/usb/core/urb.c
include/linux/usb.h