io-uring.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Keith Busch <kbusch@meta.com>,
	linux-block@vger.kernel.org, io-uring@vger.kernel.org
Cc: Pavel Begunkov <asml.silence@gmail.com>, Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH] blk-mq: remove hybrid polling
Date: Mon, 20 Mar 2023 11:16:40 -0600	[thread overview]
Message-ID: <5aecde5b-c709-c8b3-28cd-5a361bd492b9@kernel.dk> (raw)
In-Reply-To: <20230320161205.1714865-1-kbusch@meta.com>

> diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
> index f1fce1c7fa44b..c6c231f3d0f10 100644
> --- a/block/blk-sysfs.c
> +++ b/block/blk-sysfs.c
> @@ -408,36 +408,7 @@ queue_rq_affinity_store(struct request_queue *q, const char *page, size_t count)
>  
>  static ssize_t queue_poll_delay_show(struct request_queue *q, char *page)
>  {
> -	int val;
> -
> -	if (q->poll_nsec == BLK_MQ_POLL_CLASSIC)
> -		val = BLK_MQ_POLL_CLASSIC;
> -	else
> -		val = q->poll_nsec / 1000;
> -
> -	return sprintf(page, "%d\n", val);
> -}
> -
> -static ssize_t queue_poll_delay_store(struct request_queue *q, const char *page,
> -				size_t count)
> -{
> -	int err, val;
> -
> -	if (!q->mq_ops || !q->mq_ops->poll)
> -		return -EINVAL;
> -
> -	err = kstrtoint(page, 10, &val);
> -	if (err < 0)
> -		return err;
> -
> -	if (val == BLK_MQ_POLL_CLASSIC)
> -		q->poll_nsec = BLK_MQ_POLL_CLASSIC;
> -	else if (val >= 0)
> -		q->poll_nsec = val * 1000;
> -	else
> -		return -EINVAL;
> -
> -	return count;
> +	return sprintf(page, "%d\n", -1);
>  }

Do we want to retain the _store setting here to avoid breaking anything?
Yes, it won't do anything, but it's not like hybrid or classic poll had
differences that would be user visible (outside of perhaps using
different amounts of CPU).

Apart from that, not any major comments. Killing all of this (now)
unused code is great! Thanks for doing it.

-- 
Jens Axboe



  reply	other threads:[~2023-03-20 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-20 16:12 [PATCH] blk-mq: remove hybrid polling Keith Busch
2023-03-20 17:16 ` Jens Axboe [this message]
2023-03-20 17:52   ` Keith Busch
2023-03-20 18:06     ` Jens Axboe

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=5aecde5b-c709-c8b3-28cd-5a361bd492b9@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=asml.silence@gmail.com \
    --cc=io-uring@vger.kernel.org \
    --cc=kbusch@kernel.org \
    --cc=kbusch@meta.com \
    --cc=linux-block@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).