An error occurred fetching the project authors.
- 07 May, 2003 2 commits
-
-
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?
-
Christoph Hellwig authored
I added those two to factor out common code from the upper drivers a long time ago, but after Doug & Lubens nice work there's nothing left but incrementing/decrementing a counter in struct scsi_device that's never used except in the case were we not it must be NULL because we just walked the chain of drivers to detach every single one..
-
- 29 Apr, 2003 3 commits
-
-
Christoph Hellwig authored
No idea why those were ever added to scsi.c and scsi_syms.c, they're properly declared in the headers.
-
Patrick Mansfield authored
I had to add an include of scsi_logging.h to compile with logging configured:
-
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.
-
- 21 Apr, 2003 1 commit
-
-
Christoph Hellwig authored
No drivers are using it anymore, and having this private to the midlayer should make proper shost refcounting easier.
-
- 25 Mar, 2003 1 commit
-
-
Patrick Mansfield authored
Add missing scsi_queue_next_request calls. Add missing scsi_put_command and scsi_get_command exports.
-
- 23 Feb, 2003 1 commit
-
-
Christoph Hellwig authored
I had some discussion with Ben Collins on ow to properly allow hotplugging of ieee1394 storage device (sbp2). While the scsi_add_host/ scsi_remove_host interface allows hotpluging of ieee1394 adapters we need a way to register the actual devices with the scsi layer when they're plugged in. I've restructured the code to handle the /proc/scsi/scsi code to add/remove devices a bit to have an interface the ieee1394 driver can use, and created the following new interface: struct scsi_device *scsi_add_device(struct Scsi_Host *shost, uint channel, uint id, uint lun) int scsi_remove_device(struct scsi_device *sdev) in addition scsi_probe_and_add_lun() got some overhaul to become readable and can now return the struct scsi_device it probed as an optional argument.
-
- 21 Feb, 2003 1 commit
-
-
Christoph Hellwig authored
-
- 12 Feb, 2003 1 commit
-
-
Mike Anderson authored
This patch series is against scsi-misc-2.5. 03_serror-dev-offline-1.diff: - Add scsi_set_device_offline interface. -andmike -- Michael Anderson andmike@us.ibm.com scsi.c | 38 ++++++++++++++++++++++++++++++++++++++ scsi.h | 1 + scsi_syms.c | 1 + 3 files changed, 40 insertions(+)
-
- 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
-
- 28 Jan, 2003 1 commit
-
-
Luben Tuikov authored
this patch implements the new command allocation scheme for SCSI Core, using the slab cache and a free_list for each host for a backup store of one command (or many). o The three (3) subversion means that it has been updated to use ISA DMA and PCI DMA memory for scsi command allocation, i.e. there's two scsi command caches now. o The interface is, of course, unchanged; and this is the whole point of making this allocation scheme -- i.e. the allocator is abstracted.
-
- 23 Dec, 2002 1 commit
-
-
Christoph Hellwig authored
On Fri, Dec 20, 2002 at 08:29:23PM -0500, Doug Ledford wrote: > And I was right. One little q = NULL; is all that was missing. Anyway, > here's a printout of what startup looks like with this patch in place > under 2.5.52. This should make you happy Justin ;-) Okay, I looked at the patches that are in mainline and they look pretty cool to me. When looking over the code (in preparation of implementing Justin's suggestion to get rid of the highmem_io flag) I found quite a bit small stuff to make the code in that area a lot cleaner: - new helper scsi_calculate_bounce_limit to calculate the bounce limit for a scsi host, remove a copy of that code ni st.c - scsi_initialize_queue gets replace with scsi_alloc_queue, this one now takes only a struct Scsi_Host and returns the request queue, it's paired with a small scsi_free_queue helper. Diffstat: hosts.h | 3 - scsi.c | 43 ---------------------- scsi.h | 1 scsi_scan.c | 113 ++++++++++++++++++++++++++++++++++-------------------------- scsi_syms.c | 5 ++ st.c | 16 +------- 6 files changed, 73 insertions(+), 108 deletions(-)
-
- 28 Nov, 2002 1 commit
-
-
Christoph Hellwig authored
Two new helpers: scsi_device_get and scsi_device_put that get/release a reference to the underlying HBA driver and increment/decrement ->access_count. Cleanup ->attach/->detach routines in the upper layer drivers a bit to consolidate the error pathes once we're cleaning them up. ->attach and ->detach in upper layer drivers are mandatory now (not having them would be rather pointless). (note that the sd.c changes are not in this patch, it'll be part of my next, bigger patch)
-
- 27 Nov, 2002 1 commit
-
-
Mike Anderson authored
I have attached an updated combined patch of my previously posted sysfs changes. This patch is against linux-scsi.bkbits.net/scsi-misc-2.5 This patch contains these updates: - update to osst.c to support sysfs cleanups. - oops fix in osst.c detach if no device attached. A better method than this quick fix is needed. - removed scsi_bus_hotplug function do to bug and not really needed now as default gives path data. If needed in future can be added with better definition. -andmike
-
- 21 Nov, 2002 1 commit
-
-
Christoph Hellwig authored
-
- 20 Nov, 2002 1 commit
-
-
Doug Ledford authored
full events at the mid layer instead of at the low level device driver
-
- 16 Nov, 2002 1 commit
-
-
Christoph Hellwig authored
scsi.c gets really far too big, and having all code that depends on CONFIG_PROC_FS in scsi_proc.c is a nice cleanup. Note that much of the procfs code is really really ugly and wants a rewrite to at least use the seq_file interface and probably moving to sysfs.
-
- 06 Nov, 2002 1 commit
-
-
Patrick Mansfield authored
On Wed, Nov 06, 2002 at 01:50:00PM -0500, J.E.J. Bottomley wrote: > I'm OK with that, since the drivers can be audited as they're moved over to > slave attach. It also works for drivers that use older hardware (like the > 53c700) which don't call adjust_queue_depth from slave attach, but slightly > later on when they've really verified the device will accept tags. In this > case, I don't want the mid layer to call adjust_queue_depth for me even if I > leave slave_attach with only one command allocated. OK, here it is again, as discussed, plus it calls scsi_release_commandblocks on slave_attach failure.
-
- 05 Nov, 2002 1 commit
-
-
Christoph Hellwig authored
Yes, this is the patch every maintainer of a modern HBA waited for the last years </shameless plug>. With all my recent changes there's no more reason to call scsi_register_host except for the intialization it performs to every host found in scsi_register. But a driver can aswell do that at the end of it's per-HBA detection routine (i.e. in ->probe for a modern PCI driver), so export that code as scsi_add_host to drivers. Do the same for the release path (scsi_remove_host). Such a new-style driver needs neither ->detect or ->release and is in theory hotplug-capable (well, once all the races in the scsi midlayer are fixed..)
-
- 04 Nov, 2002 1 commit
-
-
Christoph Hellwig authored
Factor out code calling methods of all device template on a scsi_device out to three helper functions in scsi.c, make scsi_devicelist static to it and add a r/w semaphore to protect it. Make scsi_host_list and scsi_host_hn_list static to hosts.c and remove the never used scsi_host_tmpl_list (we only add to it and remove from it but never traverse it)
-
- 29 Oct, 2002 1 commit
-
-
Jens Axboe authored
Move the export to block/scsi_ioctl.c as well.
-
- 25 Oct, 2002 1 commit
-
-
Christoph Hellwig authored
Currnetly the ->bios_param for host drivers exposes struct scsi_disk (aka Scsi_Disk or Disk) to each and every lowlevel driver, although this structure should be privated to the sd driver. All bios_param implementation do only use two fields: .device and .capacity. This patch passes down those two directly and gets rid of 99% of the sd.h inclusions (*). I've tried to not break any driver with this patch, but given the number of compiler errors in the current tree I might have missed one or two. (*) a bunch of drivers needed sd.h to get to scsi.h, I've fixed those.
-
- 17 Oct, 2002 1 commit
-
-
Mike Anderson authored
This is a resend of my previous patch clean ups to the scsi_host lists. * Made function naming consistent with rest of SCSI * Corrected a problem with driverfs registration to early. Also changed from put_device to device_unregister. * Fixed a regression in my previous patch that the scsi_host list was not sorted by host number. When we get some device naming this hack can be removed. * Switch scsi host template, name, host lists to struct list_head's. * Moved all scsi_host related register / unregister functions into hosts.c * Added list accessor interface and created a function similar to driverfs bus_for_each_dev. The full patch is available at: http://www-124.ibm.com/storageio/patches/2.5/scsi-host -andmike -- Michael Anderson andmike@us.ibm.com scsi.c | 456 +++--------------------------------------------------------- scsi_proc.c | 57 ++++--- scsi_syms.c | 5 sg.c | 6 4 files changed, 63 insertions(+), 461 deletions(-)
-
- 12 Oct, 2002 1 commit
-
-
Alan Cox authored
-
- 08 Oct, 2002 1 commit
-
-
Doug Ledford authored
scsi_syms.c: Missing export drivers/scsi/aic7xxx_old.c: More updates for the slave_attach stuff drivers/scsi/scsi_scan.c: Make scsi_scan.c call hostt->slave_attach after we have set the sdev->tagged_supported variable
-
- 02 Jul, 2002 1 commit
-
-
Mike Sullivan authored
-
- 15 Jun, 2002 1 commit
-
-
Andries E. Brouwer authored
Below a patch removing the list of sense codes from usb/storage/debug.h since the same list is already found in scsi/constants.c. This also brings this list up to date with SCSI-3.
-
- 01 Mar, 2002 1 commit
-
-
James Bottomley authored
SCSI reservation/reset handling - Make both the old and the new error handlers respond correctly to reservation conflicts (i.e. return an I/O error). - Add a scsi_reset_provider() function for use by the sg driver SCSI reset facility.
-
- 05 Feb, 2002 7 commits
-
-
Linus Torvalds authored
- Matt Domsch: combine common crc32 library - Pete Zaitcev: ymfpci update - Davide Libenzi: scheduler improvements - Al Viro: almost there: "struct block_device *" everywhere - Richard Gooch: devfs cpqarray update, race fix - Rusty Russell: PATH_MAX should include the final '0' count - David Miller: various random updates (mainly net and sparc)
-
Linus Torvalds authored
- Christoph Hellwig: scsi_register_module cleanup - Mikael Pettersson: apic.c LVTERR fixes - Russell King: ARM update (including bio update for icside) - Jens Axboe: more bio updates - Al Viro: make ready to switch bread away from kdev_t.. - Davide Libenzi: scheduler cleanups - Anders Gustafsson: LVM fixes for bio - Richard Gooch: devfs update
-
Linus Torvalds authored
- Al Viro: floppy_eject cleanup, mount cleanups - Jens Axboe: bio updates - Ingo Molnar: mempool fixes - GOTO Masanori: Fix O_DIRECT error handling
-
Linus Torvalds authored
- Al Viro: more superblock cleanups - Jens Axboe: more patches for new block IO layer - Christoph Hellwig: get rid of the old, long- deprecated SCSI error handling
-
Linus Torvalds authored
- make sure "sync()" doesn't effectively lock up the machine by overloading all the IO resources - fix up some network memory allocations that don't wan tto wait on IO. - merge with Alan (including MIPS update) - Jeff Garzik: network driver updates. - Al Viro: System V FS update (write capability, page cache, mondo cleanups) - Kai Germaschewski: ISDN cleanups, TURBOPAM driver by Stelian Pop - Ben Fennema: UDF update (time handling, i_blocks fix) - Neil Brown: md error handling improvements, knfsd file handle compatibility - Paul Mackerras: PPC update - Jakub Jelinek: fix up kernel linker scripts to accept .rodata better - Patrick Mochel: fix PME handling in pci_enable_wake() - Chris Mason: reiserfs PF_MEMALLOC handling
-
Linus Torvalds authored
- Jens: better ordering of requests when unable to merge - Neil Brown: make md work as a module again (we cannot autodetect in modules, not enough background information) - Neil Brown: raid5 SMP locking cleanups - Neil Brown: nfsd: handle Irix NFS clients named pipe behavior and dentry leak fix - maestro3 shutdown fix - fix dcache hash calculation that could cause bad hashes under certain circumstances (Dean Gaudet) - David Miller: networking and sparc updates - Jeff Garzik: include file cleanups - Andy Grover: ACPI update - Coda-fs error return fixes - rth: alpha Jensen update
-
Linus Torvalds authored
-