public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-scsi@vger.kernel.org, bugme-daemon@bugzilla.kernel.org,
	cijoml@volny.cz
Subject: Re: [Bugme-new] [Bug 10915] New: echo min_power > /sys/class/scsi_host/host0/active_mode causes problem
Date: Sun, 15 Jun 2008 21:00:10 -0500	[thread overview]
Message-ID: <1213581610.3517.44.camel@localhost.localdomain> (raw)
In-Reply-To: <20080615180146.8abb9450.akpm@linux-foundation.org>

On Sun, 2008-06-15 at 18:01 -0700, Andrew Morton wrote:
> On Sun, 15 Jun 2008 01:52:26 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote:
> 
> > http://bugzilla.kernel.org/show_bug.cgi?id=10915
> > 
> >            Summary: echo min_power > /sys/class/scsi_host/host0/active_mode
> >                     causes problem
> >            Product: File System
> >            Version: 2.5
> >      KernelVersion: 2.6.25.6
> >           Platform: All
> >         OS/Version: Linux
> >               Tree: Mainline
> >             Status: NEW
> >           Severity: normal
> >           Priority: P1
> >          Component: SysFS
> >         AssignedTo: greg@kroah.com
> >         ReportedBy: cijoml@volny.cz
> > 
> > 
> > Latest working kernel version: unknown
> > Earliest failing kernel version: unknown
> > Distribution: Debian testing
> > Hardware Environment: HP Compaq 6910p
> > Software Environment: Debian testing, sysfs
> > Problem Description:
> > 
> > In accident I proceed
> > echo min_power > /sys/class/scsi_host/host0/active_mode
> > 
> > which causes HIGH cpu load, echo wasn't killable so reboot was only solution :(
> > 
> > Steps to reproduce:
> > proceed command
> 
> For reasons which escape me, there is no description text in bugzilla
> for this report, yet the reporter entered some.
> 
> Anyway.  Could someone please refile this under scsi?  Or fix the bug ;)

Um ... actually, maybe not.  The active_mode file is read only (it has a
NULL store method).  It's designed to show what mode the host is
activated in "initiator", "target" (or both or unknown).  If echoing
something to a read only sysfs file with no actual store method is
causing this behaviour, the root cause has to be somewhere in sysfs.

However, since the file has nothing to do with power saving ... unless
some driver I can't find is trying to duplicate it, so there's no reason
to try to echo "min_power" to it, so some of the details on this report
might bear further investigation ...

James



  reply	other threads:[~2008-06-16  2:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-10915-10286@http.bugzilla.kernel.org/>
2008-06-16  1:01 ` [Bugme-new] [Bug 10915] New: echo min_power > /sys/class/scsi_host/host0/active_mode causes problem Andrew Morton
2008-06-16  2:00   ` James Bottomley [this message]
2008-06-16  4:51     ` FUJITA Tomonori
2008-06-16 12:48     ` Andi Kleen

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=1213581610.3517.44.camel@localhost.localdomain \
    --to=james.bottomley@hansenpartnership.com \
    --cc=akpm@linux-foundation.org \
    --cc=bugme-daemon@bugzilla.kernel.org \
    --cc=cijoml@volny.cz \
    --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