public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: Joe Damato <jdamato@fastly.com>
Cc: netdev@vger.kernel.org, edumazet@google.com, willy@infradead.org,
	Alexander Viro <viro@zeniv.linux.org.uk>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v4 5/7] eventpoll: Control irq suspension for prefer_busy_poll
Date: Sun,  3 Nov 2024 07:39:25 +0800	[thread overview]
Message-ID: <20241102233925.2948-1-hdanton@sina.com> (raw)
In-Reply-To: <20241102005214.32443-6-jdamato@fastly.com>

On Sat,  2 Nov 2024 00:52:01 +0000 Martin Karsten <mkarsten@uwaterloo.ca>
> 
> @@ -2005,8 +2032,10 @@ static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events,
>  			 * trying again in search of more luck.
>  			 */
>  			res = ep_send_events(ep, events, maxevents);
> -			if (res)
> +			if (res) {
> +				ep_suspend_napi_irqs(ep);

Leave napi irq intact in case of -EINTR.

>  				return res;
> +			}
>  		}
>  
>  		if (timed_out)
> -- 
> 2.25.1

  parent reply	other threads:[~2024-11-02 23:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-02  0:51 [PATCH net-next v4 0/7] Suspend IRQs during application busy periods Joe Damato
2024-11-02  0:51 ` [PATCH net-next v4 1/7] net: Add napi_struct parameter irq_suspend_timeout Joe Damato
2024-11-02 23:30   ` Samudrala, Sridhar
2024-11-02  0:51 ` [PATCH net-next v4 2/7] net: Suspend softirq when prefer_busy_poll is set Joe Damato
2024-11-02 23:32   ` Samudrala, Sridhar
2024-11-02  0:51 ` [PATCH net-next v4 3/7] net: Add control functions for irq suspension Joe Damato
2024-11-02 23:33   ` Samudrala, Sridhar
2024-11-02  0:52 ` [PATCH net-next v4 4/7] eventpoll: Trigger napi_busy_loop, if prefer_busy_poll is set Joe Damato
2024-11-02 23:33   ` Samudrala, Sridhar
2024-11-02  0:52 ` [PATCH net-next v4 5/7] eventpoll: Control irq suspension for prefer_busy_poll Joe Damato
2024-11-02 23:35   ` Samudrala, Sridhar
2024-11-02 23:39   ` Hillf Danton [this message]
2024-11-03  4:10     ` Joe Damato
2024-11-02  0:52 ` [PATCH net-next v4 6/7] selftests: net: Add busy_poll_test Joe Damato
2024-11-02  0:52 ` [PATCH net-next v4 7/7] docs: networking: Describe irq suspension Joe Damato
2024-11-02 23:41   ` Samudrala, Sridhar
2024-11-02 23:51 ` [PATCH net-next v4 0/7] Suspend IRQs during application busy periods Hillf Danton
2024-11-03  1:50   ` Joe Damato

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241102233925.2948-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=edumazet@google.com \
    --cc=jdamato@fastly.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox