[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20091223.215448.241930752.davem@davemloft.net>
Date: Wed, 23 Dec 2009 21:54:48 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jarkao2@...il.com
Cc: rl@...lgate.ch, wrar@...linux.org, lists@...dbynature.de,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH] net/via-rhine: Fix scheduling while atomic bugs
From: Jarek Poplawski <jarkao2@...il.com>
Date: Tue, 22 Dec 2009 18:36:42 +0100
> There are BUGs "scheduling while atomic" triggered by the timer
> rhine_tx_timeout(). They are caused by calling napi_disable() (with
> msleep()). This patch fixes it by moving most of the timer content to
> the workqueue function (similarly to other drivers, like tg3), with
> spin_lock() changed to BH version.
>
> Additionally, there is spin_lock_irq() moved in rhine_close() to
> exclude napi_disable() etc., also tg3's way.
>
> Reported-by: Andrey Rahmatullin <wrar@...linux.org>
> Tested-by: Andrey Rahmatullin <wrar@...linux.org>
> Signed-off-by: Jarek Poplawski <jarkao2@...il.com>
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists