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

2023-07-21 Thread Maxime Coquelin
On 7/21/23 17:10, Michael S. Tsirkin wrote: On Fri, Jul 21, 2023 at 04:58:04PM +0200, Maxime Coquelin wrote: On 7/21/23 16:45, Michael S. Tsirkin wrote: On Fri, Jul 21, 2023 at 04:37:00PM +0200, Maxime Coquelin wrote: On 7/20/23 23:02, Michael S. Tsirkin wrote: On Thu, Jul 20, 2023 at

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

2023-07-21 Thread Michael S. Tsirkin
On Fri, Jul 21, 2023 at 04:58:04PM +0200, Maxime Coquelin wrote: > > > On 7/21/23 16:45, Michael S. Tsirkin wrote: > > On Fri, Jul 21, 2023 at 04:37:00PM +0200, Maxime Coquelin wrote: > > > > > > > > > On 7/20/23 23:02, Michael S. Tsirkin wrote: > > > > On Thu, Jul 20, 2023 at 01:26:20PM -0700,

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

2023-07-21 Thread Maxime Coquelin
On 7/21/23 16:45, Michael S. Tsirkin wrote: On Fri, Jul 21, 2023 at 04:37:00PM +0200, Maxime Coquelin wrote: On 7/20/23 23:02, Michael S. Tsirkin wrote: On Thu, Jul 20, 2023 at 01:26:20PM -0700, Shannon Nelson wrote: On 7/20/23 1:38 AM, Jason Wang wrote: Adding cond_resched() to the com

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

2023-07-21 Thread Michael S. Tsirkin
On Fri, Jul 21, 2023 at 04:37:00PM +0200, Maxime Coquelin wrote: > > > On 7/20/23 23:02, Michael S. Tsirkin wrote: > > On Thu, Jul 20, 2023 at 01:26:20PM -0700, Shannon Nelson wrote: > > > On 7/20/23 1:38 AM, Jason Wang wrote: > > > > > > > > Adding cond_resched() to the command waiting loop for

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

2023-07-21 Thread Maxime Coquelin
On 7/20/23 23:02, Michael S. Tsirkin wrote: On Thu, Jul 20, 2023 at 01:26:20PM -0700, Shannon Nelson wrote: On 7/20/23 1:38 AM, 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 tas