An error occurred fetching the project authors.
- 10 May, 2003 1 commit
-
-
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(-)
-
- 07 May, 2003 1 commit
-
-
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?
-
- 05 May, 2003 2 commits
-
-
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(-)
-
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(-)
-
- 29 Apr, 2003 1 commit
-
-
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.
-
- 28 Apr, 2003 1 commit
-
-
Greg Kroah-Hartman authored
Yes, this patch is not logically correct, in that the scsi-host class no longer works, but Mike Anderson has a patch that will be submitted that fixes all of these problems.
-
- 25 Mar, 2003 1 commit
-
-
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..
-
- 14 Mar, 2003 1 commit
-
-
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:~#
-
- 21 Feb, 2003 1 commit
-
-
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.
-
- 04 Feb, 2003 1 commit
-
-
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
-
- 13 Jan, 2003 1 commit
-
-
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.
-
- 10 Jan, 2003 1 commit
-
-
Patrick Mansfield authored
Hi - This simple patch adds scsi_level to the scsi_device sysfs attributes, mainly for use with Doug Gilbert's lsscsi program.
-
- 09 Jan, 2003 1 commit
-
-
Patrick Mochel authored
Remove @count and @off parameters from show() and store() callbacks.
-
- 05 Dec, 2002 1 commit
-
-
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.
-
- 28 Nov, 2002 1 commit
-
-
Mike Anderson authored
-