From: Manoj Kumar <manoj@linux.vnet.ibm.com>
To: Brian King <brking@linux.vnet.ibm.com>,
"Matthew R. Ochs" <mrochs@linux.vnet.ibm.com>,
linux-scsi@vger.kernel.org,
James.Bottomley@HansenPartnership.com, nab@linux-iscsi.org,
hch@infradead.org
Cc: mikey@neuling.org, imunsie@au1.ibm.com
Subject: Re: [PATCH v3] cxlflash: Base support for IBM CXL Flash Adapter
Date: Fri, 05 Jun 2015 12:11:40 -0500 [thread overview]
Message-ID: <5571D84C.5040409@linux.vnet.ibm.com> (raw)
In-Reply-To: <557062D3.7080303@linux.vnet.ibm.com>
Brian:
Thanks for your review. Responses are inline below.
- Manoj Kumar
On 6/4/2015 9:38 AM, Brian King wrote:
>> +
>> + write_lock(&cfg->tmf_lock);
>
> What is this lock protecting? The only thing it seems to be accomplishing is
> making sure one thread isn't sending a TMF and another thread is sending
> a normal I/O command at the exact same time, yet it looks like you still
> allow a TMF to be sent and a normal I/O to be sent immediately after, before
> receiving the TMF response.
>
Originally this section was waiting for the TMF response. I see that is
no longer the case. Will restore the original behavior, with adequate
locking.
>> + afu->room = readq_be(&afu->host_map->cmd_room);
>
> Looks like you now have an MMIO load as part of sending every command,
> including commands coming from queuecommand. Won't that be a performance issue?
> Is there any way to avoid this? Could you perhaps decrement afu->room
> in this function and only re-read it from the AFU when the counter hits zero?
>
Good point. Will revise to avoid MMIO in this performance path.
prev parent reply other threads:[~2015-06-05 17:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 23:55 [PATCH v3] cxlflash: Base support for IBM CXL Flash Adapter Matthew R. Ochs
2015-06-04 14:38 ` Brian King
2015-06-05 17:11 ` Manoj Kumar [this message]
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=5571D84C.5040409@linux.vnet.ibm.com \
--to=manoj@linux.vnet.ibm.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=brking@linux.vnet.ibm.com \
--cc=hch@infradead.org \
--cc=imunsie@au1.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mikey@neuling.org \
--cc=mrochs@linux.vnet.ibm.com \
--cc=nab@linux-iscsi.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).