Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-10-17 Thread Michael S. Tsirkin
On Mon, Sep 05, 2022 at 12:53:41PM +0800, Jason Wang wrote: > Adding cond_resched() to the command waiting loop for a better > co-operation with the scheduler. This allows to give CPU a breath to > run other task(workqueue) instead of busy looping when preemption is > not allowed. > > What's more

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-10-17 Thread Jason Wang
On Wed, Oct 12, 2022 at 11:19 AM Jason Wang wrote: > > On Tue, Oct 11, 2022 at 1:11 AM Michael S. Tsirkin wrote: > > > > On Sun, Oct 09, 2022 at 01:58:53PM +0800, Jason Wang wrote: > > > > > > 在 2022/9/8 13:19, Michael S. Tsirkin 写道: > > > > On Thu, Sep 08, 2022 at 10:21:45AM +0800, Jason Wang wr

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-10-11 Thread Jason Wang
On Tue, Oct 11, 2022 at 1:11 AM Michael S. Tsirkin wrote: > > On Sun, Oct 09, 2022 at 01:58:53PM +0800, Jason Wang wrote: > > > > 在 2022/9/8 13:19, Michael S. Tsirkin 写道: > > > On Thu, Sep 08, 2022 at 10:21:45AM +0800, Jason Wang wrote: > > > > 在 2022/9/7 15:46, Michael S. Tsirkin 写道: > > > > > On

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-10-10 Thread Michael S. Tsirkin
On Sun, Oct 09, 2022 at 01:58:53PM +0800, Jason Wang wrote: > > 在 2022/9/8 13:19, Michael S. Tsirkin 写道: > > On Thu, Sep 08, 2022 at 10:21:45AM +0800, Jason Wang wrote: > > > 在 2022/9/7 15:46, Michael S. Tsirkin 写道: > > > > On Wed, Sep 07, 2022 at 09:07:20AM +0200, Paolo Abeni wrote: > > > > > On

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-10-08 Thread Jason Wang
在 2022/9/8 13:19, Michael S. Tsirkin 写道: On Thu, Sep 08, 2022 at 10:21:45AM +0800, Jason Wang wrote: 在 2022/9/7 15:46, Michael S. Tsirkin 写道: On Wed, Sep 07, 2022 at 09:07:20AM +0200, Paolo Abeni wrote: On Wed, 2022-09-07 at 10:09 +0800, Jason Wang wrote: On Tue, Sep 6, 2022 at 6:56 PM Paolo

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-07 Thread Michael S. Tsirkin
On Thu, Sep 08, 2022 at 10:21:45AM +0800, Jason Wang wrote: > > 在 2022/9/7 15:46, Michael S. Tsirkin 写道: > > On Wed, Sep 07, 2022 at 09:07:20AM +0200, Paolo Abeni wrote: > > > On Wed, 2022-09-07 at 10:09 +0800, Jason Wang wrote: > > > > On Tue, Sep 6, 2022 at 6:56 PM Paolo Abeni wrote: > > > > >

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-07 Thread Jason Wang
在 2022/9/7 15:46, Michael S. Tsirkin 写道: On Wed, Sep 07, 2022 at 09:07:20AM +0200, Paolo Abeni wrote: On Wed, 2022-09-07 at 10:09 +0800, Jason Wang wrote: On Tue, Sep 6, 2022 at 6:56 PM Paolo Abeni wrote: On Mon, 2022-09-05 at 15:49 +0800, Jason Wang wrote: On Mon, Sep 5, 2022 at 3:15 PM Mi

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-07 Thread Michael S. Tsirkin
On Wed, Sep 07, 2022 at 09:07:20AM +0200, Paolo Abeni wrote: > On Wed, 2022-09-07 at 10:09 +0800, Jason Wang wrote: > > On Tue, Sep 6, 2022 at 6:56 PM Paolo Abeni wrote: > > > > > > On Mon, 2022-09-05 at 15:49 +0800, Jason Wang wrote: > > > > On Mon, Sep 5, 2022 at 3:15 PM Michael S. Tsirkin >

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-07 Thread Paolo Abeni
On Wed, 2022-09-07 at 10:09 +0800, Jason Wang wrote: > On Tue, Sep 6, 2022 at 6:56 PM Paolo Abeni wrote: > > > > On Mon, 2022-09-05 at 15:49 +0800, Jason Wang wrote: > > > On Mon, Sep 5, 2022 at 3:15 PM Michael S. Tsirkin wrote: > > > > > > > > On Mon, Sep 05, 2022 at 12:53:41PM +0800, Jason Wa

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-06 Thread Jason Wang
On Tue, Sep 6, 2022 at 6:56 PM Paolo Abeni wrote: > > On Mon, 2022-09-05 at 15:49 +0800, Jason Wang wrote: > > On Mon, Sep 5, 2022 at 3:15 PM Michael S. Tsirkin wrote: > > > > > > On Mon, Sep 05, 2022 at 12:53:41PM +0800, Jason Wang wrote: > > > > Adding cond_resched() to the command waiting loop

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-06 Thread Paolo Abeni
On Mon, 2022-09-05 at 15:49 +0800, Jason Wang wrote: > On Mon, Sep 5, 2022 at 3:15 PM Michael S. Tsirkin wrote: > > > > On Mon, Sep 05, 2022 at 12:53:41PM +0800, Jason Wang wrote: > > > Adding cond_resched() to the command waiting loop for a better > > > co-operation with the scheduler. This allo

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-05 Thread Jason Wang
On Mon, Sep 5, 2022 at 3:15 PM Michael S. Tsirkin wrote: > > On Mon, Sep 05, 2022 at 12:53:41PM +0800, Jason Wang wrote: > > Adding cond_resched() to the command waiting loop for a better > > co-operation with the scheduler. This allows to give CPU a breath to > > run other task(workqueue) instead

Re: [PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-05 Thread Michael S. Tsirkin
On Mon, Sep 05, 2022 at 12:53:41PM +0800, Jason Wang wrote: > Adding cond_resched() to the command waiting loop for a better > co-operation with the scheduler. This allows to give CPU a breath to > run other task(workqueue) instead of busy looping when preemption is > not allowed. > > What's more

[PATCH net] virtio-net: add cond_resched() to the command waiting loop

2022-09-04 Thread Jason Wang
Adding cond_resched() to the command waiting loop for a better co-operation with the scheduler. This allows to give CPU a breath to run other task(workqueue) instead of busy looping when preemption is not allowed. What's more important. This is a must for some vDPA parent to work since control vir