[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3ecb1939-97c2-4fe6-a437-8f840bec9e89@CMEXHTCAS2.ad.emulex.com>
Date: Tue, 26 Nov 2013 21:33:37 +0000
From: Ajit Khaparde <Ajit.Khaparde@...lex.Com>
To: Ivan Vecera <ivecera@...hat.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: Sathya Perla <Sathya.Perla@...lex.Com>,
Subramanian Seetharaman <subbu.seetharaman@...lex.com>
Subject: RE: [PATCH net] be2net: call napi_disable() for all event queues
> -----Original Message-----
> From: Ivan Vecera [mailto:ivecera@...hat.com]
> Sent: Tuesday, November 26, 2013 10:55 AM
> To: netdev@...r.kernel.org
> Cc: Sathya Perla; Subramanian Seetharaman; Ajit Khaparde
> Subject: [PATCH net] be2net: call napi_disable() for all event queues
>
> The recent be2net commit 6384a4d (adds a support for busy polling)
> introduces a regression that results in kernel crash. It incorrectly
> modified be_close() so napi_disable() is called only for the first queue.
> This breaks a correct pairing of napi_enable/_disable for the rest
> of event queues and causes a crash in subsequent be_open() call.
>
> Cc: Sathya Perla <sathya.perla@...lex.com>
> Cc: Subbu Seetharaman <subbu.seetharaman@...lex.com>
> Cc: Ajit Khaparde <ajit.khaparde@...lex.com>
> Signed-off-by: Ivan Vecera <ivecera@...hat.com>
Acked-by: Ajit Khaparde <ajit.khaparde@...lex.com>
> ---
> drivers/net/ethernet/emulex/benet/be_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/emulex/benet/be_main.c
> b/drivers/net/ethernet/emulex/benet/be_main.c
> index 78a0e85..0aec4d2 100644
> --- a/drivers/net/ethernet/emulex/benet/be_main.c
> +++ b/drivers/net/ethernet/emulex/benet/be_main.c
> @@ -2663,8 +2663,8 @@ static int be_close(struct net_device *netdev)
> napi_disable(&eqo->napi);
> be_disable_busy_poll(eqo);
> }
> - adapter->flags &= ~BE_FLAGS_NAPI_ENABLED;
> }
> + adapter->flags &= ~BE_FLAGS_NAPI_ENABLED;
>
> be_async_mcc_disable(adapter);
>
> --
> 1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists