From: Bart Van Assche <Bart.VanAssche@sandisk.com>
To: "jsmart2021@gmail.com" <jsmart2021@gmail.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [ANNOUNCE]: Broadcom (Emulex) FC Target driver - efct
Date: Fri, 17 Mar 2017 00:10:21 +0000 [thread overview]
Message-ID: <1489709408.2574.26.camel@sandisk.com> (raw)
In-Reply-To: <ced2ff0a-05ee-b85e-b41a-f912cab9e267@gmail.com>
On Mon, 2017-02-27 at 15:28 -0800, James Smart wrote:
> I'd like to announce the availability of the Broadcom (Emulex) FC Target
> driver - efct.
Hello James,
Sorry but I have not yet had the time to do a full review. But I would like
to already share the following feedback:
* efct_io_find_tgt_io() looks up an I/O request in a list. The lookup is
protected by a spinlock but callers are expected to increase the I/O
request reference count after the lock has been released. This looks wrong
to me and most likely means that there are race conditions related to I/O
request lookup. Have you considered to move the kref_get() call into
efct_io_find_tgt_io() such that it can occur with the spinlock held?
* If an ABTS is received then efct_process_abts() (indirectly) calls
target_submit_tmr(). That last function may or may not decide to call
efct_lio_queue_status(), depending on whether or not the TAS bit has been
set. efct_lio_queue_status() sends back a SCSI response to the initiator
(see also __transport_check_aborted_status() and
transport_send_task_abort()). Is it allowed by the FC spec to send back a
SCSI response after an ABTS has been received? Is that SCSI response sent
before or after the BLS ABTS response?
Thanks,
Bart.
prev parent reply other threads:[~2017-03-17 0:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 23:28 [ANNOUNCE]: Broadcom (Emulex) FC Target driver - efct James Smart
2017-02-28 16:34 ` Hannes Reinecke
2017-02-28 18:14 ` James Smart
2017-03-01 9:40 ` Hannes Reinecke
2017-03-02 20:08 ` Nicholas A. Bellinger
2017-03-05 16:35 ` Sebastian Herbszt
2017-03-06 17:53 ` Bart Van Assche
2017-05-16 19:59 ` Roland Dreier
2017-06-12 23:08 ` James Smart
2017-06-13 6:31 ` Christoph Hellwig
2017-06-13 8:29 ` Johannes Thumshirn
2017-06-13 15:34 ` Martin K. Petersen
2017-06-14 11:40 ` Hannes Reinecke
2017-06-14 20:02 ` Sebastian Herbszt
2017-06-16 6:38 ` Hannes Reinecke
2017-03-17 0:10 ` Bart Van Assche [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=1489709408.2574.26.camel@sandisk.com \
--to=bart.vanassche@sandisk.com \
--cc=jsmart2021@gmail.com \
--cc=linux-scsi@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).