* question regarding 2.6.18 backport
@ 2013-02-19 13:51 Andrew Jones
2013-02-19 13:54 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Jones @ 2013-02-19 13:51 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
Hi Ian,
I believe there's a problem with the 2.6.18 reference tree backport of
48856286b64e: "xen/netback: shutdown the ring if it contains garbage",
which is c/s 1219. While the version in Linus' tree should be fine,
as xen_netbk_tx_action runs in a kthread, the 2.6.18 version needs
something different. In 2.6.18 net_tx_action is a tasklet, thus calling
xenvif_carrier_off from it is problematic due to needing the rtnl
mutex. A proposal I have that I haven't tried yet is for
netbk_fatal_tx_err to schedule xenvif_carrier_off in a workqueue. This
is a bit ugly though since the main point of xenvif_carrier_off is to
queue linkwatch work. I'm wondering if you or anyone else have other
suggestions.
Thanks,
Drew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question regarding 2.6.18 backport
2013-02-19 13:51 question regarding 2.6.18 backport Andrew Jones
@ 2013-02-19 13:54 ` Ian Campbell
2013-02-19 14:39 ` Jan Beulich
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2013-02-19 13:54 UTC (permalink / raw)
To: Andrew Jones; +Cc: xen-devel@lists.xensource.com, Jan Beulich
On Tue, 2013-02-19 at 13:51 +0000, Andrew Jones wrote:
> Hi Ian,
>
> I believe there's a problem with the 2.6.18 reference tree backport of
> 48856286b64e: "xen/netback: shutdown the ring if it contains garbage",
> which is c/s 1219. While the version in Linus' tree should be fine,
> as xen_netbk_tx_action runs in a kthread, the 2.6.18 version needs
> something different. In 2.6.18 net_tx_action is a tasklet, thus calling
> xenvif_carrier_off from it is problematic due to needing the rtnl
> mutex. A proposal I have that I haven't tried yet is for
> netbk_fatal_tx_err to schedule xenvif_carrier_off in a workqueue. This
> is a bit ugly though since the main point of xenvif_carrier_off is to
> queue linkwatch work. I'm wondering if you or anyone else have other
> suggestions.
Jan was looking into something of this nature, not sure wht the status
is though.
Ian.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question regarding 2.6.18 backport
2013-02-19 13:54 ` Ian Campbell
@ 2013-02-19 14:39 ` Jan Beulich
0 siblings, 0 replies; 3+ messages in thread
From: Jan Beulich @ 2013-02-19 14:39 UTC (permalink / raw)
To: Ian Campbell, Andrew Jones; +Cc: xen-devel@lists.xensource.com
>>> On 19.02.13 at 14:54, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> On Tue, 2013-02-19 at 13:51 +0000, Andrew Jones wrote:
>> Hi Ian,
>>
>> I believe there's a problem with the 2.6.18 reference tree backport of
>> 48856286b64e: "xen/netback: shutdown the ring if it contains garbage",
>> which is c/s 1219. While the version in Linus' tree should be fine,
>> as xen_netbk_tx_action runs in a kthread, the 2.6.18 version needs
>> something different. In 2.6.18 net_tx_action is a tasklet, thus calling
>> xenvif_carrier_off from it is problematic due to needing the rtnl
>> mutex. A proposal I have that I haven't tried yet is for
>> netbk_fatal_tx_err to schedule xenvif_carrier_off in a workqueue. This
>> is a bit ugly though since the main point of xenvif_carrier_off is to
>> queue linkwatch work. I'm wondering if you or anyone else have other
>> suggestions.
>
> Jan was looking into something of this nature, not sure wht the status
> is though.
http://xenbits.xen.org/hg/linux-2.6.18-xen.hg/rev/ff0befcaac09
Jan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-19 14:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-19 13:51 question regarding 2.6.18 backport Andrew Jones
2013-02-19 13:54 ` Ian Campbell
2013-02-19 14:39 ` Jan Beulich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.