From: Bart Van Assche <bvanassche@acm.org>
To: Sreekanth Reddy <sreekanth.reddy@broadcom.com>,
linux-scsi@vger.kernel.org, martin.petersen@oracle.com
Subject: Re: [PATCH] mpt3sas: Add io_uring iopoll support
Date: Sun, 29 Aug 2021 19:40:00 -0700 [thread overview]
Message-ID: <3efd607c-43df-4c2a-7948-de794b414406@acm.org> (raw)
In-Reply-To: <20210727081212.2742-1-sreekanth.reddy@broadcom.com>
On 7/27/21 01:12, Sreekanth Reddy wrote:
> + /*
> + * wait for current poll to complete.
> + */
> + for (qid = 0; qid < iopoll_q_count; qid++) {
> + while (atomic_read(&ioc->io_uring_poll_queues[qid].busy))
> + udelay(500);
> + }
So this loop busy-waits without calling cpu_relax()? That's not OK ...
An additional question: is mpt3sas_base_hard_reset_handler() the only
function that calls mpt3sas_base_pause_mq_polling() and
mpt3sas_base_resume_mq_polling()? If so, why have these functions been
introduced since the SCSI core guarantees that all pending requests
either have failed or have timed out before the SCSI error handler is
invoked?
Thanks,
Bart.
next prev parent reply other threads:[~2021-08-30 2:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 8:12 [PATCH] mpt3sas: Add io_uring iopoll support Sreekanth Reddy
2021-08-10 3:11 ` Martin K. Petersen
2021-08-17 3:20 ` Martin K. Petersen
2021-08-30 2:40 ` Bart Van Assche [this message]
2021-08-30 17:15 ` Sreekanth Reddy
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=3efd607c-43df-4c2a-7948-de794b414406@acm.org \
--to=bvanassche@acm.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=sreekanth.reddy@broadcom.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.