[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140206.200647.755082106891394503.davem@davemloft.net>
Date: Thu, 06 Feb 2014 20:06:47 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: nsujir@...adcom.com
Cc: netdev@...r.kernel.org, david.vrabel@...rix.com, mchan@...adcom.com
Subject: Re: [PATCH net] tg3: Fix deadlock in tg3_change_mtu()
From: Nithin Nayak Sujir <nsujir@...adcom.com>
Date: Thu, 6 Feb 2014 14:13:05 -0800
> Quoting David Vrabel -
> "5780 cards cannot have jumbo frames and TSO enabled together. When
> jumbo frames are enabled by setting the MTU, the TSO feature must be
> cleared. This is done indirectly by calling netdev_update_features()
> which will call tg3_fix_features() to actually clear the flags.
>
> netdev_update_features() will also trigger a new netlink message for the
> feature change event which will result in a call to tg3_get_stats64()
> which deadlocks on the tg3 lock."
>
> tg3_set_mtu() does not need to be under the tg3 lock since converting
> the flags to use set_bit(). Move it out to after tg3_netif_stop().
>
> Reported-by: David Vrabel <david.vrabel@...rix.com>
> Tested-by: David Vrabel <david.vrabel@...rix.com>
> Signed-off-by: Michael Chan <mchan@...adcom.com>
> Signed-off-by: Nithin Nayak Sujir <nsujir@...adcom.com>
Applied and queued up for -stable, thanks.
--
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