From: Andy Grover <agrover@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: target-devel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: [PATCH 4/5] target/qla2xxx: Define NPIV ops in terms of normal ops
Date: Wed, 21 Aug 2013 09:02:32 -0700 [thread overview]
Message-ID: <5214E498.6020504@redhat.com> (raw)
In-Reply-To: <20130821063008.GD25506@infradead.org>
On 08/20/2013 11:30 PM, Christoph Hellwig wrote:
> On Tue, Aug 20, 2013 at 06:00:06PM -0700, Andy Grover wrote:
>> Instead of defining a second target_core_fabric_ops struct, use the
>> same one as normal (tcm_qla2xxx_ops) and then fixup the changed methods.
>>
>> This should make it a little easier to pick out the npiv differences, and
>> also save a little space.
>>
>> Signed-off-by: Andy Grover <agrover@redhat.com>
>
> Can't say I'm a huge fan of either the old or new way, I'd rather have
> the methods contain both the NPIV and non-NPIV code inline. If that's
> what you're preparing for I'm supportive of this, otherwise I don't
> really care too much about it. Looks correct at least..
It reduces the binary size and makes it easier to spot the differences
between the two cases, which was the goal. So I think it's a small
improvement but if others disagree then I'm fine with the code as-is.
Regards -- Andy
next prev parent reply other threads:[~2013-08-21 16:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 1:00 [PATCH 0/5] Macro and qla npiv cleanups Andy Grover
2013-08-21 1:00 ` [PATCH 1/5] target: Remove TF_CIT_TMPL macro Andy Grover
2013-08-21 6:27 ` Christoph Hellwig
2013-08-21 1:00 ` [PATCH 2/5] target/iscsi: Remove iscsi dereferencing macros Andy Grover
2013-08-21 6:27 ` Christoph Hellwig
2013-08-21 1:00 ` [PATCH 3/5] target/iscsi: Remove macros that contain typecasts Andy Grover
2013-08-21 6:28 ` Christoph Hellwig
2013-08-21 1:00 ` [PATCH 4/5] target/qla2xxx: Define NPIV ops in terms of normal ops Andy Grover
2013-08-21 6:30 ` Christoph Hellwig
2013-08-21 16:02 ` Andy Grover [this message]
2013-08-21 1:00 ` [PATCH 5/5] target/qla2xxx: Remove QLA_TPG_ATTRIB macro Andy Grover
2013-08-21 6:30 ` Christoph Hellwig
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=5214E498.6020504@redhat.com \
--to=agrover@redhat.com \
--cc=hch@infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=target-devel@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).