question regarding 2.6.18 backport
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
Quoted 13 lines · Andrew Jones
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, asxen_netbk_tx_actionruns in a kthread, the 2.6.18 version needs something different. In 2.6.18net_tx_actionis a tasklet, thus callingxenvif_carrier_offfrom it is problematic due to needing the rtnl mutex. A proposal I have that I haven't tried yet is fornetbk_fatal_tx_errto schedulexenvif_carrier_offin a workqueue. This is a bit ugly though since the main point ofxenvif_carrier_offis 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.
Quoted 16 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 13 lines · Andrew Jones
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, asxen_netbk_tx_actionruns in a kthread, the 2.6.18 version needs something different. In 2.6.18net_tx_actionis a tasklet, thus callingxenvif_carrier_offfrom it is problematic due to needing the rtnl mutex. A proposal I have that I haven't tried yet is fornetbk_fatal_tx_errto schedulexenvif_carrier_offin a workqueue. This is a bit ugly though since the main point ofxenvif_carrier_offis to queue linkwatch work. I'm wondering if you or anyone else have other suggestions.
Quoted 2 lines
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