From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Spencer Baugh <spencer.baugh@purestorage.com>
Cc: "Elliott, Robert (Server Storage)" <Elliott@hp.com>,
Spencer Baugh <sbaugh@catern.com>,
Sagi Grimberg <sagig@mellanox.com>,
Christoph Hellwig <hch@lst.de>,
Bart Van Assche <bart.vanassche@sandisk.com>,
Alexei Potashnik <alexei@purestorage.com>,
Andy Grover <agrover@redhat.com>,
Christophe Vu-Brugier <cvubrugier@fastmail.fm>,
Roland Dreier <roland@purestorage.com>,
Joern Engel <joern@logfs.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
James Bottomley <JBottomley@Odin.com>,
Evgenii Lepikhin <johnlepikhin@gmail.com>,
Hannes Reinecke <hare@suse.de>, Al Viro <viro@zeniv.linux.org.uk>,
"open list:TARGET SUBSYSTEM" <linux-scsi@vger.kernel.org>,
"open list:TARGET SUBSYSTEM" <target-devel@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
Joern Engel <joern@purestorage.com>
Subject: Re: [PATCH v3] target: Drop iSCSI use of mutex around max_cmd_sn increment
Date: Sun, 02 Aug 2015 23:21:47 -0700 [thread overview]
Message-ID: <1438582907.16598.92.camel@haakon3.risingtidesystems.com> (raw)
In-Reply-To: <87egjyfsmb.fsf@ponos.purestorage.com>
On Thu, 2015-07-23 at 14:53 -0700, Spencer Baugh wrote:
> From: Roland Dreier <roland@purestorage.com>
>
> In a performance profile, taking a mutex in iscsit_increment_maxcmdsn()
> shows up very high. However taking a mutex around "sess->max_cmd_sn += 1"
> seems pretty silly: we're not serializing against other contexts in
> any useful way.
>
> I did a quick audit and there don't appear to be any other places that
> use max_cmd_sn within the mutex more than once, so this lock can't be
> providing any useful serialization.
>
> v2: Get correct values for logging
> v3: Fix whitespace damage
>
> Signed-off-by: Roland Dreier <roland@purestorage.com>
> Signed-off-by: Spencer Baugh <sbaugh@catern.com>
> ---
> drivers/target/iscsi/iscsi_target.c | 18 +++++++++---------
> drivers/target/iscsi/iscsi_target_configfs.c | 6 ++++--
> drivers/target/iscsi/iscsi_target_device.c | 7 ++-----
> drivers/target/iscsi/iscsi_target_login.c | 2 +-
> drivers/target/iscsi/iscsi_target_nego.c | 9 +++------
> drivers/target/iscsi/iscsi_target_tmr.c | 2 +-
> drivers/target/iscsi/iscsi_target_util.c | 7 ++++---
> include/target/iscsi/iscsi_target_core.h | 2 +-
> 8 files changed, 25 insertions(+), 28 deletions(-)
>
A nice optimization for iscsi-target + ib_isert on this patch.
Applied to target-pending/for-next.
Thanks Roland & Co.
prev parent reply other threads:[~2015-08-03 6:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 22:08 [PATCH] " Spencer Baugh
2015-07-23 0:33 ` Elliott, Robert (Server Storage)
2015-07-23 18:40 ` [PATCH v2] " Spencer Baugh
2015-07-23 21:53 ` [PATCH v3] " Spencer Baugh
2015-08-03 6:21 ` Nicholas A. Bellinger [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=1438582907.16598.92.camel@haakon3.risingtidesystems.com \
--to=nab@linux-iscsi.org \
--cc=Elliott@hp.com \
--cc=JBottomley@Odin.com \
--cc=agrover@redhat.com \
--cc=alexei@purestorage.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bart.vanassche@sandisk.com \
--cc=cvubrugier@fastmail.fm \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=joern@logfs.org \
--cc=joern@purestorage.com \
--cc=johnlepikhin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=roland@purestorage.com \
--cc=sagig@mellanox.com \
--cc=sbaugh@catern.com \
--cc=spencer.baugh@purestorage.com \
--cc=target-devel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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
all inboxes | Powered by JetHome®