linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: hare@suse.de, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] RFC scsi_error: handle REPORT_LUNS_DATA_CHANGED, CAPACITY_DATA_CHANGED,
Date: Thu, 07 May 2009 22:06:51 -0500	[thread overview]
Message-ID: <4A03A1CB.2050906@cs.wisc.edu> (raw)
In-Reply-To: <20090508094158T.fujita.tomonori@lab.ntt.co.jp>

FUJITA Tomonori wrote:
> On Mon, 20 Apr 2009 11:55:52 +0200
> Hannes Reinecke <hare@suse.de> wrote:
> 
>> Hi Mike,
>>
>> Mike Christie wrote:
>>> Hey Hannes
>>>
>>> While we are talking about LSF stuff and you are not busy with distro
>>> stuff....
>>>
>> Ah, irony detector kicked in.
>> (Current bugilla count is at 114. Ask me about being busy.)
>>
>>> I implemented this based on what we talked about at the last LSF.
>>>
>> Yes, I've seen it. You again beat me to it; I've done an initial implementation
>> already but failed to send it mainline. Sigh.
>>
>> But yes, we _do_ need something like this.
>>
>>> I was thinking that maybe using kobject_uevent_env would be better. The
>>> info that gets passed to userspace would be the decoded sense and
>>> asc/ascq based on values from the drivers/scsi/constants.c.
>>>
>> No. This patch has the possibility of generating _huge_ amounts of
>> messages, most of which are information only and of no influence
>> to the actual operation.
>> udev would be flooded with it and won't be able to react to 'important'
>> messages while processing them.
> 
> Do we really have huge amount of messages, errors, unit attentions,
> etc?
> 
> We already have a mechanism to send events to user space,
> sdev_evt_send(). Could we simply use (or extend) it?

Yeah, I think we could add a SCSI_EVT_SCSI_SENSE event, then pass the 
sense code and asc and ascq in the envp.

  reply	other threads:[~2009-05-08  3:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31 18:47 [PATCH] RFC scsi_error: handle REPORT_LUNS_DATA_CHANGED, CAPACITY_DATA_CHANGED, michaelc
2009-04-17 22:27 ` Mike Christie
2009-04-20  9:55   ` Hannes Reinecke
2009-04-20 19:35     ` Mike Christie
2009-05-08  0:41     ` FUJITA Tomonori
2009-05-08  3:06       ` Mike Christie [this message]
2009-05-20 14:46       ` Hannes Reinecke
2009-05-21 15:23         ` Mike Christie

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=4A03A1CB.2050906@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=hare@suse.de \
    --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).