Re: [PATCH V3] usbnet: fix race condition caused spinlock bad magic issue

2013-11-14 Thread Bjørn Mork
Oliver Neukum writes: > On Thu, 2013-11-14 at 10:03 +0800, wangbiao wrote: >> From: wang, biao >> Date: Mon, 11 Nov 2013 10:23:40 +0800 >> Subject: [PATCH] usbnet: fix race condition caused spinlock bad magic issue >> >> there is race between usbnet_terminate_urbs and usbnet_bh. >> for example:

Re: [PATCH V3] usbnet: fix race condition caused spinlock bad magic issue

2013-11-14 Thread Oliver Neukum
On Thu, 2013-11-14 at 10:03 +0800, wangbiao wrote: > From: wang, biao > Date: Mon, 11 Nov 2013 10:23:40 +0800 > Subject: [PATCH] usbnet: fix race condition caused spinlock bad magic issue > > there is race between usbnet_terminate_urbs and usbnet_bh. > for example: > cpu 0

Re: [PATCH V3] usbnet: fix race condition caused spinlock bad magic issue

2013-11-13 Thread Ingo Molnar
* wangbiao wrote: > @@ -86,6 +86,7 @@ static const char driver_name [] = "usbnet"; > > /* use ethtool to change the level for any given device */ > static int msg_level = -1; > +static spinlock_t dev_wait_lock = __SPIN_LOCK_UNLOCKED(dev_wait_lock); > module_param (msg_level, int, 0); > MOD

[PATCH V3] usbnet: fix race condition caused spinlock bad magic issue

2013-11-13 Thread wangbiao
From: wang, biao Date: Mon, 11 Nov 2013 10:23:40 +0800 Subject: [PATCH] usbnet: fix race condition caused spinlock bad magic issue there is race between usbnet_terminate_urbs and usbnet_bh. for example: cpu 0 cpu 1