RE: [PATCH net 1/2] vhost_net: fix ubuf refcount incorrectly when sendmsg fails

2020-12-14 Thread wangyunjian
dation.org; > Lilijun (Jerry) ; chenchanghu > ; xudingke ; huangbin (J) > > Subject: Re: [PATCH net 1/2] vhost_net: fix ubuf refcount incorrectly when > sendmsg fails > > On Mon, Dec 14, 2020 at 8:59 PM wangyunjian > wrote: > > > > From: Yunjian Wang > >

Re: [PATCH net 1/2] vhost_net: fix ubuf refcount incorrectly when sendmsg fails

2020-12-14 Thread Willem de Bruijn
On Mon, Dec 14, 2020 at 8:59 PM wangyunjian wrote: > > From: Yunjian Wang > > Currently the vhost_zerocopy_callback() maybe be called to decrease > the refcount when sendmsg fails in tun. The error handling in vhost > handle_tx_zerocopy() will try to decrease the same refcount again. > This is wr