An error occurred fetching the project authors.
  1. 10 May, 2003 1 commit
    • Mike Anderson's avatar
      [PATCH] scsi_host sysfs updates scsi-misc-2.5 [2/2] · d69e478f
      Mike Anderson authored
      Here is an update of the patch with the externs in scsi_priv.h
      
      -andmike
      --
      Michael Anderson
      andmike@us.ibm.com
      
      DESC
      scsi shost sysfs cleanups for scsi-misc-2.5
      - Add LLDD short name to scsi_host struct device.
      - scsi_host_release now calls scsi_free_shost.
      - Switched from device_register / device_unregister and class_register
      / class_register to initialize, add, del, put pairs.
      - Moved some function from scsi_register and scsi_unregister.
      - Filled in scsi_host_put and scsi_host_get.
      
      Rev 2 move externs to scsi_priv.h
      EDESC
      
      
       drivers/scsi/hosts.c      |   33 ++++++++++++++++++++++++++++-----
       drivers/scsi/scsi_priv.h  |    2 ++
       drivers/scsi/scsi_sysfs.c |   19 +++++++++++--------
       3 files changed, 41 insertions(+), 13 deletions(-)
      d69e478f
  2. 07 May, 2003 1 commit
    • Christoph Hellwig's avatar
      [PATCH] first batch of shost sysfs fixes · fecb256b
      Christoph Hellwig authored
      (a) scsi_check_device_busy() is unused now, kill it.  Btw, although I
          love to see this this really means we need to imply a
          scsi_set_device_offline (or even better scsi_set_host_offline)
          in scsi_remove_host now..
      (b) make shost_class static to scsi_sysfs.c, with the new device model
          changes no LLDD needs this anymore
      (c) move private prototypes where they belong.
      
      BTW, Mike, did I miss something or will your changes make every driver
      converted to scsi_add_host & co OOPS on removal now?
      fecb256b
  3. 05 May, 2003 2 commits
    • Mike Anderson's avatar
      [PATCH] scsi host sysfs support again [4/4] · 154173a0
      Mike Anderson authored
      -andmike
      --
      Michael Anderson
      andmike@us.ibm.com
      
      
      DESC
      Change scsi sysfs to support scsi host class device and call release
      functions when ref count goes to zero.
      EDESC
      
      
       drivers/scsi/scsi_sysfs.c |  111 +++++++++++++++++++++++++++++++++++++++-------
       1 files changed, 96 insertions(+), 15 deletions(-)
      154173a0
    • Mike Anderson's avatar
      [PATCH] scsi host sysfs support again [1/4] · 6f1b204e
      Mike Anderson authored
      -andmike
      --
      Michael Anderson
      andmike@us.ibm.com
      
      DESC
      This patch removes the shost_devclass device class support that was
      previously added, but incomplete.
      EDESC
      
      
       drivers/acorn/scsi/acornscsi.c |    1 -
       drivers/acorn/scsi/arxescsi.c  |    1 -
       drivers/acorn/scsi/cumana_1.c  |    1 -
       drivers/acorn/scsi/cumana_2.c  |    1 -
       drivers/acorn/scsi/eesox.c     |    1 -
       drivers/acorn/scsi/oak.c       |    1 -
       drivers/acorn/scsi/powertec.c  |    1 -
       drivers/scsi/scsi_sysfs.c      |   23 -----------------------
       8 files changed, 30 deletions(-)
      6f1b204e
  4. 29 Apr, 2003 1 commit
    • Christoph Hellwig's avatar
      [PATCH] split private and public scsi headers · 21eb047c
      Christoph Hellwig authored
      Two new headers:
      
        scsi_priv.h - for macros/declarations private to the scsi midlayer
      		  (= not EXPORT_SYMBOL()ed)
        scsi_logging.h - for SCSI_LOG_* and friends, semi-private to the
        		midlayer and the upper drivers.  One abuse of this
      		in dpt_i2o killed.
      21eb047c
  5. 28 Apr, 2003 1 commit
  6. 25 Mar, 2003 1 commit
    • Christoph Hellwig's avatar
      [PATCH] fix rescan warning · b2936d3a
      Christoph Hellwig authored
      The prototype for scsi_rescan_device was missing and once added it's
      caller doesn't compile anymore because it expects a return value..
      b2936d3a
  7. 14 Mar, 2003 1 commit
    • Alex Tomas's avatar
      [PATCH] Re: hot scsi disk resize · d685cc6d
      Alex Tomas authored
      Hi!
      
      Here is new version of the patch. All procfs-related stuff has been removed.
      One may rescan device size writing something to /sysfs/.../<scsi device>/rescan:
      
      root@zefir:~# echo 1 >/sysfs/bus/scsi/devices/0\:0\:1\:0/rescan
      root@zefir:~# dmesg
      scsi0:A:1:0: Tagged Queuing enabled.  Depth 64
      scsi: host 0 channel 0 id 1 lun16384 has a LUN larger than allowed by the host adapter
      SCSI device sda: 2097152 512-byte hdwr sectors (1074 MB)
      SCSI device sda: drive cache: write through
       sda: unknown partition table
      Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
      SCSI device sda: 125829120 512-byte hdwr sectors (64425 MB)
      root@zefir:~#
      d685cc6d
  8. 21 Feb, 2003 1 commit
    • Christoph Hellwig's avatar
      [PATCH] move over exposing host attributes from sg/procfs to sysfs · 2e8a9a3f
      Christoph Hellwig authored
      This patch moves over printing of the various struct Scsi_Host
      attributes from procfs functions in the sg driver to sysfs.
      
      Not only is this the much more logical place for them, but with some
      more work on the pcmcia drivers this will allow us to make
      scsi_host_get_next() private to the midlayer for implementing
      refcounting and cleaning up locking in that area.
      2e8a9a3f
  9. 04 Feb, 2003 1 commit
    • Christoph Hellwig's avatar
      [PATCH] fixes and cleanups for the new command allocation code · 21cd9dc6
      Christoph Hellwig authored
      On Tue, Feb 04, 2003 at 12:33:23PM -0600, James Bottomley wrote:
      > I agree with this.  It is a guarantee the mid-layer makes to the LLD
      > (and there are some LLDs with static issue queues for which this is a
      > hard requirement).  I think (once the dust has settled and we've agreed
      > which field holds the current queue depth) what's needed is a check in
      > the scsi_request_fn() to see if we're over the LLD's current depth for
      > the device and plug the queue and exit if we are.  The next returning
      > command will unplug and send.
      >
      > This way of doing things means that we're free to prep as many commands
      > as we can, but we guarantee only to have the correct number outstanding
      > to the LLD.
      
      Okay, here's a new versin of the patch.  Changes:
      
      * throttel on number of inflight command blocks
      * rename scsi_cmnd->new_queue_depth to scsi_cmnd->queue_depth
      * remove scsi_do_cmd
      * serialize pool handling
      21cd9dc6
  10. 13 Jan, 2003 1 commit
    • Patrick Mochel's avatar
      sysfs: fixup SCSI sysfs files · 3f47b64a
      Patrick Mochel authored
      - Reinstate count parameter for store() methods.
      - Remove off parameter from st.c and osst.c sysfs methods.
      - Remove count parameter from st.c and osst.c show() methods.
      3f47b64a
  11. 10 Jan, 2003 1 commit
  12. 09 Jan, 2003 1 commit
  13. 05 Dec, 2002 1 commit
    • Patrick Mansfield's avatar
      [PATCH] add more scsi_device sysfs attributes · 8b8c8712
      Patrick Mansfield authored
      Hi -
      
      This patch adds some scsi_device sysfs specific macros (based on some
      in the usb source), and adds more scsi_device sysfs attributes.
      
      It modifies the current output of the "type" attribute to be
      the numeric value of the type, and adds a few other attributes.
      
      It is easy to add or remove scsi_device attributes with this patch.
      
      Example sysfs with this patch:
      
      [patman@elm3a50 patman]$ ls /sysfs/bus/scsi/devices/0:0:0:0
      0:0:0:0:gen   current_queue_depth  name             power  vendor
      access_count  device_blocked       new_queue_depth  rev
      block         model                online           type
      
      And results of catting each file above (block and 0:0:0:0:gen are
      not files):
      
      /sysfs/bus/scsi/devices/0:0:0:0/access_count: '2'
      /sysfs/bus/scsi/devices/0:0:0:0/current_queue_depth: '253'
      /sysfs/bus/scsi/devices/0:0:0:0/device_blocked: '0'
      /sysfs/bus/scsi/devices/0:0:0:0/model: 'ST318203LC    !#'
      /sysfs/bus/scsi/devices/0:0:0:0/name: 'SIBM-PSG ST318203LC    !#LRA6701300007027J5ZL'
      /sysfs/bus/scsi/devices/0:0:0:0/new_queue_depth: '253'
      /sysfs/bus/scsi/devices/0:0:0:0/online: '1'
      /sysfs/bus/scsi/devices/0:0:0:0/power: '0'
      /sysfs/bus/scsi/devices/0:0:0:0/rev: 'B222'
      /sysfs/bus/scsi/devices/0:0:0:0/type: '0'
      /sysfs/bus/scsi/devices/0:0:0:0/vendor: 'IBM-PSG '
      
      The online bit field is writable, although setting it to 0 is not useful.
      8b8c8712
  14. 28 Nov, 2002 1 commit