All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Tejun Heo <tj@kernel.org>
Cc: dgilbert@interlog.com,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	linux-scsi@vger.kernel.org, Dave Jones <dsj@fb.com>,
	kernel-team@fb.com
Subject: Re: [PATCH] scsi: don't count non-failure CHECK_CONDITION as error
Date: Fri, 15 Jan 2016 11:09:16 -0800	[thread overview]
Message-ID: <1452884956.2356.21.camel@HansenPartnership.com> (raw)
In-Reply-To: <20160115184252.GJ3520@mtj.duckdns.org>

On Fri, 2016-01-15 at 13:42 -0500, Tejun Heo wrote:
> Hello, James.
> 
> On Fri, Jan 15, 2016 at 10:35:34AM -0800, James Bottomley wrote:
> > Well, I can see sense in having an error count of everything that
> > comes
> > back that's not good status because it's easy and has a well
> > defined
> > meaning (calling it the "error count" is more debatable, agreed). 
> >  It
> > appears that Dave and Tejun want the count to mean something else. 
> >  Lets treat this as a feature exercise: Dave and Tejun, what do you
> > want, then we can see if we could add an additional counter giving
> > you
> > that.
> 
> Well, currently, for libata devices, all passthrough commands bump it
> up because the result taskfile is reported via sense data, which is
> pretty misleading for something named ioerr_cnt.  Maybe we can ignore
> CHECK_CONDITION for ATA passthrough commands but special casing them
> can be confusing in other ways.

That doesn't really help me pin down what you want.  I already said
ioerr_cnt is misleading, but we're stuck with the name, becuase it's an
ABI.

Under the definition I gave, the behaviour you currently see is
correct: all commands with non good status count as errors.  That
includes a ton of stuff I wouldn't classify as real errors, like queue
full status, deferred sense codes and even auto correct, which is why I
believe the term "error count" is misleading, but, as I said, we're
stuck with it.

If we want to change what is being counted, we have to change the
definition, so what is the definition you want to see for counting
errors? and what's the reason driving this change?

James


  reply	other threads:[~2016-01-15 19:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-14 21:46 [PATCH] scsi: don't count non-failure CHECK_CONDITION as error Tejun Heo
2016-01-14 21:49 ` [PATCH REPOST] " Tejun Heo
2016-01-15 10:04 ` [PATCH] " Hannes Reinecke
2016-01-15 15:46 ` James Bottomley
2016-01-15 15:55   ` James Bottomley
2016-01-15 16:50     ` Douglas Gilbert
2016-01-15 18:35       ` James Bottomley
2016-01-15 18:42         ` Tejun Heo
2016-01-15 19:09           ` James Bottomley [this message]
2016-01-15 19:27             ` Tejun Heo
2016-01-15 19:36               ` James Bottomley
2016-01-15 19:40                 ` Tejun Heo

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=1452884956.2356.21.camel@HansenPartnership.com \
    --to=james.bottomley@hansenpartnership.com \
    --cc=dgilbert@interlog.com \
    --cc=dsj@fb.com \
    --cc=kernel-team@fb.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=tj@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.