From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
James Bottomley <James.Bottomley@HansenPartnership.com>,
Mike Christie <michaelc@cs.wisc.edu>,
Hannes Reinecke <hare@suse.de>,
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
Boaz Harrosh <bharrosh@panasas.com>,
Stephen Rothwell <sfr@canb.auug.org.au>,
Douglas Gilbert <dgilbert@interlog.com>
Subject: Re: [RFC-v2 11/12] iscsi-target: Add misc utility and debug logic
Date: Tue, 15 Mar 2011 15:59:56 -0700 [thread overview]
Message-ID: <1300229996.28255.322.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <20110315102720.GC24496@lst.de>
On Tue, 2011-03-15 at 11:27 +0100, Christoph Hellwig wrote:
> On Mon, Mar 14, 2011 at 04:57:08AM -0700, Nicholas A. Bellinger wrote:
> > +++ b/drivers/target/iscsi/iscsi_debug.h
> > @@ -0,0 +1,113 @@
> > +#ifndef ISCSI_DEBUG_H
> > +#define ISCSI_DEBUG_H
> > +
> > +/*
> > + * Debugging Support
> > + */
> > +
> > +#define TRACE_DEBUG 0x00000001 /* Verbose debugging */
> > +#define TRACE_SCSI 0x00000002 /* Stuff related to SCSI Mid-layer */
>
> Please use trace events for this kind of debugging.
>
<nod>, will have a closer look at Documentation/trace/events.txt
> > + spin_lock_bh(&conn->cmd_lock);
> > + list_add_tail(&cmd->i_list, &conn->conn_cmd_list);
> > + spin_unlock_bh(&conn->cmd_lock);
> > +
> > + atomic_inc(&conn->active_cmds);
>
> Seems like this counter is always maintained together with the list,
> so it should be a non-atomic type under cmd_lock.
>
This counter (was) purely information and unused beyond the atomic_inc()
+ atomic_dec(). Removing now..
--nab
next prev parent reply other threads:[~2011-03-15 23:07 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 11:56 [RFC-v2 00/12] iSCSI target v4.1.0-rc1 series for .39 Nicholas A. Bellinger
2011-03-14 11:56 ` [RFC-v2 01/12] iscsi: Resolve iscsi_proto.h naming conflicts with drivers/target/iscsi Nicholas A. Bellinger
2011-03-14 14:59 ` Christoph Hellwig
2011-03-14 21:40 ` Nicholas A. Bellinger
[not found] ` <1300138856.28255.133.camel-Y1+j5t8j3WgjMeEPmliV8E/sVC8ogwMJ@public.gmane.org>
2011-03-14 22:13 ` Mike Christie
2011-03-14 23:52 ` Nicholas A. Bellinger
2011-03-14 11:56 ` [RFC-v2 02/12] iscsi-target: Add primary iSCSI request/response state machine logic Nicholas A. Bellinger
2011-03-14 15:33 ` Christoph Hellwig
2011-03-15 0:17 ` Nicholas A. Bellinger
2011-03-15 10:15 ` Christoph Hellwig
2011-03-15 22:46 ` Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 03/12] iscsi-target: Add TCM v4 compatiable ConfigFS control plane Nicholas A. Bellinger
2011-03-15 0:54 ` Jesper Juhl
2011-03-15 4:47 ` Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 04/12] iscsi-target: Add configfs fabric dependent statistics Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 05/12] iscsi-target: Add TPG and Device logic Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 06/12] iscsi-target: Add iSCSI Login Negotiation and Parameter logic Nicholas A. Bellinger
2011-03-15 10:21 ` Christoph Hellwig
2011-03-15 22:55 ` Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 07/12] iscsi-target: Add CHAP Authentication support using libcrypto Nicholas A. Bellinger
2011-03-15 10:24 ` Christoph Hellwig
2011-03-15 22:56 ` Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 08/12] iscsi-target: Add Sequence/PDU list + DataIN response logic Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 09/12] iscsi-target: Add iSCSI Error Recovery Hierarchy support Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 10/12] iscsi-target: Add support for task management operations Nicholas A. Bellinger
2011-03-14 11:57 ` [RFC-v2 11/12] iscsi-target: Add misc utility and debug logic Nicholas A. Bellinger
2011-03-15 10:27 ` Christoph Hellwig
2011-03-15 22:59 ` Nicholas A. Bellinger [this message]
2011-03-14 11:57 ` [RFC-v2 12/12] iscsi-target: Add Makefile/Kconfig and update TCM top level Nicholas A. Bellinger
2011-03-15 1:03 ` Jesper Juhl
2011-03-15 4:52 ` Nicholas A. Bellinger
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=1300229996.28255.322.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=bharrosh@panasas.com \
--cc=dgilbert@interlog.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=sfr@canb.auug.org.au \
/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