1. 18 Oct, 2002 12 commits
    • Alexander Viro's avatar
      [PATCH] sr.c · c40bcba2
      Alexander Viro authored
      	* set ->queue
      	* removed DEVICE_NR()
      	* switched request handling to ->rq_disk
      c40bcba2
    • Alexander Viro's avatar
      [PATCH] loop.c · 41e18abb
      Alexander Viro authored
      	* set ->private_data and ->queue
      	* ->open() and friends are using ->bd_disk->private_data instead of
      	  messing with DEVICE_NR(inode->i_rdev)
      41e18abb
    • Alexander Viro's avatar
      [PATCH] mfmhd.c · 2d4200be
      Alexander Viro authored
      	* set ->private_data and ->queue
      	* removed DEVICE_NR
      	* switched to private queue
      	* (partial) compile fixes - it still misses stuff from 2.5.1...
      2d4200be
    • Alexander Viro's avatar
      [PATCH] md.c · 62da9e6b
      Alexander Viro authored
      AAAARGH.  OK, I've got it to work with the current tree, but...  I don't
      like the lifetime rules - both old and new ones.  Summary:
      
      	* we create a gendisk upon attempt to open or upon successful
      	  attempt to run (which _can_ happen without open).
      	* we never remove them until the rmmod (or ever).
      	* mddev is held by gendisk.
      
      The source of trouble is our API - ioctls on possibly unconfigured
      devices when no IO is possible, potentially setting up this (or another,
      or many other) devices.  I _think_ we can get the old rules (mddev
      exists when somebody holds it open or when it runs or when somebody is
      looking at it funny), but the way I see will take more messing with
      driverfs objects than I want right now. 
      
      Notice that current API is, was and will be ripe with interesting races
      - it really ought to be replaced with something saner, but that would
      take serious modifications of userland tools.  I'll talk with Neil about
      possible solution, this patch just gets it back to life. 
      62da9e6b
    • Alexander Viro's avatar
      [PATCH] ide.c cleaned up · 6dc95b4c
      Alexander Viro authored
      	* got ->private_data and ->queue set
      	* got blk_register_region() done in ide-probe.c
      	* module loading removed from ide_open() (and taken to probe)
      	* ->open() and friends are using ->bd_disk->private_data instead of
      	  messing with get_info_ptr(inode->i_rdev)
      	* request handler uses ->rq_disk->private_data instead of DEVICE_NR(...)
      	* DEVICE_NR() removed.
      	* switched to new methods.
      	* get_info_ptr() killed.
      	* ide_xlate_1024() switched to struct block_device * (probably should
      	  simply die).
      
      NOTE: ide-tape pulls mind-boggling crap - it can be opened as a block
      device, but you can't do any IO on it; only IDE ioctls.  It happens to
      work (almost by accident), but I'd really prefer to take said ioctls to
      driverfs and be done with that. 
      
      NOTE: WTF are ide{disk,cd,tape,scsi,floppy} lists? They are defined,
      exported and never touched by anything. 
      6dc95b4c
    • Alexander Viro's avatar
      [PATCH] probes · 48149ec3
      Alexander Viro authored
      	introduced blk_register_region() and blk_unregister_region()
      	removed blk_set_probe()
      	switched to almost final variant of get_gendisk()
      48149ec3
    • Alexander Viro's avatar
      [PATCH] pf.c cleaned up · 177d3b13
      Alexander Viro authored
      	* switched to private queue
      	* got ->queue set
      	* ->open() and friends are using ->bd_disk->private_data instead of
      	  messing with DEVICE_NR(inode->i_rdev)
      	* request handler uses ->rq_disk->private_data instead of DEVICE_NR(...)
      	* DEVICE_NR() removed.
      	* switched to new methods.
      	* got rid of CURRENT
      177d3b13
    • Alexander Viro's avatar
      [PATCH] pcd.c cleaned up · c4b2e85f
      Alexander Viro authored
      	* switched to private queue
      	* got ->queue set
      	* ->open() and friends are using ->bd_disk->private_data instead of
      	  messing with DEVICE_NR(inode->i_rdev)
      	* request handler uses ->rq_disk->private_data instead of DEVICE_NR(...)
      	* DEVICE_NR() removed.
      	* switched to new methods.
      	* got rid of CURRENT
      c4b2e85f
    • Alexander Viro's avatar
      [PATCH] pd.c cleaned up · 710a8ae9
      Alexander Viro authored
      	* switched to private queue
      	* got ->private_data and ->queue set
      	* ->open() and friends are using ->bd_disk->private_data instead of
      	  messing with DEVICE_NR(inode->i_rdev)
      	* request handler uses ->rq_disk->private_data instead of DEVICE_NR(...)
      	* DEVICE_NR() removed.
      	* switched to new methods.
      710a8ae9
    • Alexander Viro's avatar
      [PATCH] compile fixes · 850c11cf
      Alexander Viro authored
      DaveM spotted bogus cast sprintf in checks.c.  Fixed.  Several places
      that unregistered device called put_device() instead.
      850c11cf
    • Alexander Viro's avatar
      [PATCH] cdrom helpers · 2988ef57
      Alexander Viro authored
      	cdrom_open(), cdrom_release(), cdrom_ioctl() and cdrom_media_changed()
      got an additional argument - struct cdrom_device_info *.  Drivers that used
      to have them as methods are using wrappers that pass right cdrom_device_info.
      Existing callers (in ide-cd.c) updated.  pcd.c, mcdx.c, sbpcd.c and sr.c
      got ->private_data in their disks pointing to relevant objects.  Since all
      callers of cdrom_find_device() are gone, it got removed.  Since all users
      of cdrom_device_info->dev are gone, it's not set anymore (and got removed).
      2988ef57
    • Alexander Viro's avatar
      [PATCH] infrastructure · 6b388653
      Alexander Viro authored
      	* added ->media_changed(disk).  Callers of ->check_media_changed()
      are using that one if present
      	* added ->revaldiate_disk(disk).  Callers of ->revalidate()
      are using that one if present
      	* added disk->queue.  do_open() uses it if non-NULL
      	* added disk->private_data
      	* removed assignments to inode->i_data.backing_... - it belongs to
      filesystem that contains device node and we don't care about it;
      inode->i_mapping points to ->i_data of bdev inode and there we should
      (and do) set that field.
      6b388653
  2. 17 Oct, 2002 21 commits
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/davem/BK/sparc-2.5 · 4978a1f0
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      4978a1f0
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/davem/BK/net-2.5 · 3d2fc2a0
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      3d2fc2a0
    • Andrew Morton's avatar
      [PATCH] 3com driver fix · 0e8544ed
      Andrew Morton authored
      From Alexey: teach the 3com ethernet driver to add checksums to
      outgoing UDP frames.
      0e8544ed
    • Andrew Morton's avatar
      [PATCH] ramdisk fix · 514cbf5e
      Andrew Morton authored
      The ramdisk address_space needs to have a non-zero
      mapping->backing_dev_info.memory_backed, so it doesn't contribute to
      global memory accounting.
      
      At present it is confusing memory accounting and causing
      balance_dirty_pages to go into an infinite loop.
      514cbf5e
    • James Bottomley's avatar
      Merge mulgrave.(none):/home/jejb/BK/scsi-sd-cache-2.5 · 07ccd224
      James Bottomley authored
      into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
      07ccd224
    • James Bottomley's avatar
      Merge mulgrave.(none):/home/jejb/BK/scsi-misc-2.5 · 6a1dcf3c
      James Bottomley authored
      into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
      6a1dcf3c
    • James Bottomley's avatar
      Merge mulgrave.(none):/home/jejb/BK/scsi-host-list-2.5 · 8428b10d
      James Bottomley authored
      into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
      8428b10d
    • James Bottomley's avatar
      Merge mulgrave.(none):/home/jejb/BK/53c700-2.5 · 40ea4c83
      James Bottomley authored
      into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
      40ea4c83
    • Mike Anderson's avatar
      [PATCH] scsi_debug new scan fix · 534a4bf2
      Mike Anderson authored
      If you use scsi_debug the patch below fixes a problem that has existed
      since the updated scan code was merged in. scsi_debug previously assumed
      that the scsi_device used to probe and the device permanently added to the
      host_queue would be the same. This caused scsi_debug to allocate some
      internal data and key it off the scsi_device pointer for later use.  This
      resulted in scsi_debug failing all IO post scanning. This patch corrects
      this problem.
      
      Note:
      	Douglas Gilbert is the maintainer of this driver.
      	dougg@gear.torque.net
      	http://www.torque.net/sg/
      
      	During Douglas Gilbert's time-off he connects when he can so it
      	maybe a bit until he can address this.
      
      	In the interim this patch makes scsi_debug functional.
      
      
      The full patch is available at:
      http://www-124.ibm.com/storageio/patches/2.5/scsi-debug
      -andmike
      --
      Michael Anderson
      andmike@us.ibm.com
      
       scsi_debug.c |   59 +++++++++++++++++++++++++++++++----------------------------
       1 files changed, 31 insertions(+), 28 deletions(-)
      534a4bf2
    • Patrick Mansfield's avatar
      [PATCH] Re: [PATCH] SCSI-2 LUN setting consolidation · 489f597d
      Patrick Mansfield authored
      This patch consolidates the setting of the LUN in byte 1 of the SCSI
      command block for SCSI-2 and lower devices.
      
      This is needed for multi-path IO (some devices can actually have differnt
      LUN values for each path), but is also a nice clean up of the code.
      
      sg.c was able to inhibit setting the value, this removes that capability -
      if it is really needed it can be black listed in the device_list[] flags,
      or sg could set a similiar flag.
      
      This is patched against the latest bk (as of some time on Oct 16), and
      patches clean against 2.5.43.
      
      Tests were run with different adapters and various disks and a tape drive,
      I have no SCSI-2 multi-lun devices, so the main verifcation was done using
      a modified scsi_debug.c driver to emulate a multi-lun SCSI-2 device.
      
       drivers/scsi/osst.c       |    2 --
       drivers/scsi/scsi.c       |    6 ++++++
       drivers/scsi/scsi_error.c |   12 +++++-------
       drivers/scsi/scsi_ioctl.c |   16 ++++------------
       drivers/scsi/scsi_scan.c  |   31 ++++---------------------------
       drivers/scsi/sd.c         |   22 +++++-----------------
       drivers/scsi/sg.c         |    4 ----
       drivers/scsi/sr.c         |   17 ++---------------
       drivers/scsi/sr_ioctl.c   |   20 +-------------------
       drivers/scsi/sr_vendor.c  |   18 +++---------------
       drivers/scsi/st.c         |    2 --
       include/scsi/sg.h         |    2 +-
       12 files changed, 31 insertions(+), 121 deletions(-)
      489f597d
    • James Bottomley's avatar
      [SCSI sd] correct wrong prink statement · 2ddcc9e9
      James Bottomley authored
      2ddcc9e9
    • James Bottomley's avatar
    • James Bottomley's avatar
      [SCSI 53c700] update with new TCQ code · 3a0e045b
      James Bottomley authored
      3a0e045b
    • James Bottomley's avatar
    • Linus Torvalds's avatar
      Merge penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/read-ahead · 60db5f20
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      60db5f20
    • David Howells's avatar
      [PATCH] do_generic_file_read / readahead adjustments · 9de05205
      David Howells authored
      This does the following three things:
      
       (1) Makes the functions in mm/readahead.c only use struct file* to pass to
           readpage(). address_mapping* and file_ra_state* are used instead to keep
           track of readahead stuff.
      
       (2) Adds a new function do_generic_mapping_read() that is similar to
           do_generic_file_read(), except that it uses a mapping pointer and a
           readahead state pointer to access a file. The file* is only used to pass
           to readpage().
      
       (3) Turns do_generic_file_read() into an inline function in linux/fs.h that
           simply wraps do_generic_mapping_read().
      
      This should mean that it is no longer necessary to have a struct file to
      access a file in this manner. Just an inode or address space should be
      sufficient.
      
      It also means alternate read-ahead structures can be maintained.
      
      The reason I want this is that I'm writing a general cache manager for
      filesystems such as AFS, NFSv4, and Lustre. Block devices are made available
      to the "cache manager" by means of a filesystem that can be mounted. I'm
      storing meta data in an inode in the cache, but to scan this at the moment I
      need to gain a "struct file" to use with do_generic_file_read().
      
      This involves either creating a dummy dentry and struct file (which will cause
      Al Viro to come looking for me with a shotgun), or to use an extra auxilliary
      filesystem mounted with do_kern_mount(), neither of which are particularly
      appealing.
      
      This patch is the alternative... it provides a function that I can pass an
      address_space to. This also allows me to make use of readahead semantics
      without having to reinvent them for myself.
      9de05205
    • Christoph Hellwig's avatar
      [PATCH] remove LSM file_llseek hook · b5a6c077
      Christoph Hellwig authored
      In the initial discussion LSM folks agreed on this, the
      rationale is that lsseek itself makes no sense to
      project as mmap() and pread/pwrite() allow access to any
      area of the file anyway.
      b5a6c077
    • Christoph Hellwig's avatar
      [PATCH] make LSM register functions GPLonly exports · 22652747
      Christoph Hellwig authored
      These exports have the power to change the implementations of all
      syscalls and I've seen people exploiting this "feature".
      
      Make the exports GPLonly (which some LSM folks agreed to
      when it was merged initially to avoid that).
      22652747
    • Mike Anderson's avatar
      [PATCH] scsi host cleanup 3/3 (driver changes) · 209287fb
      Mike Anderson authored
      If you read my previous post on this patch I indicated that few of the
      driver changes I was only able to compile test ( block/cciss_scsi.c,
      scsi/53c700.c, scsi/pcmcia/*, scsi/wd33c93.c). The changes to the
      drivers are to remove the old interfaces and possibly extra NULL inits
      of struct members. These changes will need to be ok'd by there
      respective maintainers. I did receive feedback from two.
      
      I have tested these changes on ips, aic, qlogicisp, and scsi_debug
      drivers.
      
      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
      
       acorn/scsi/acornscsi.c            |    6 ++----
       acorn/scsi/arxescsi.c             |    8 ++------
       acorn/scsi/cumana_2.c             |    8 ++------
       acorn/scsi/eesox.c                |    8 ++------
       acorn/scsi/powertec.c             |    8 ++------
       block/cciss_scsi.c                |   21 ++-------------------
       scsi/53c700.c                     |    6 ++----
       scsi/aic7xxx/aic7xxx_linux_host.h |    1 -
       scsi/cpqfcTSinit.c                |    4 +---
       scsi/fcal.c                       |    4 +---
       scsi/ips.h                        |    3 ---
       scsi/pcmcia/aha152x_stub.c        |    3 ++-
       scsi/pcmcia/fdomain_stub.c        |    3 ++-
       scsi/pcmcia/nsp_cs.c              |    3 ++-
       scsi/pcmcia/qlogic_stub.c         |    3 ++-
       scsi/wd33c93.c                    |    5 +----
       16 files changed, 25 insertions(+), 69 deletions(-)
      209287fb
    • Mike Anderson's avatar
      [PATCH] scsi host cleanup 2/3 (mid lvl changes) · 68fe1e0f
      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(-)
      68fe1e0f
    • Mike Anderson's avatar
      [PATCH] scsi host cleanup 1/3 (base) (corrected) · 728df29f
      Mike Anderson authored
      I had diffed against a tree missing a compile fix this is the correct base
      patch.
      
      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
      
       hosts.c |  890 +++++++++++++++++++++++++++++++++++++++++++++++++---------------
       hosts.h |   97 +++---
       2 files changed, 734 insertions(+), 253 deletions(-)
      728df29f
  3. 16 Oct, 2002 7 commits