An error occurred fetching the project authors.
  1. 21 Jan, 2005 1 commit
  2. 08 Jan, 2005 1 commit
  3. 27 Nov, 2004 1 commit
  4. 12 Jul, 2004 1 commit
  5. 03 Jun, 2004 1 commit
  6. 09 Sep, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] Initialise devfs_name in various block drivers · 8e62b8a7
      Andrew Morton authored
      From: Andrey Borzenkov <arvidjaar@mail.ru>
      
      Various block drivers are currently devfs-unaware.  Andrey's patch attempts
      to give them reasonable representations in devfs.
      
      
       "The attached patch suggests some possible names for non-floppy devices
        based on reading driver source.  I have to ask if these make sense.  At
        least for cciss Mandrake devfsd patch expects different names but it
        seems to be mistake (it assumes single controller always)
      
       "For floppy it is not as simple.  Floppy cannot use genhd and must
        create names manually; but I do not know what names are appropriate or
        expected.
      
       "For acsi the target/lun name may have problem of creating compat names
        (if any) by devfsd.
      
       "Please note that none of them created any devfs name under 2.4 as well.
         So it is not a regression ..."
      8e62b8a7
  7. 03 Sep, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] MODULE_ALIAS() in block devices · e46674c8
      Andrew Morton authored
      From: Rusty Russell <rusty@rustcorp.com.au>
      
      Previously, default aliases were hardwired into modutils.  Now they should
      be inside the modules, using MODULE_ALIAS() (they will be overridden by any
      user alias).
      e46674c8
  8. 06 Aug, 2003 1 commit
    • Jens Axboe's avatar
      [PATCH] Proper block queue reference counting · ace416a3
      Jens Axboe authored
      To be able to properly be able to keep references to block queues,
      we make blk_init_queue() return the queue that it initialized, and
      let it be independently allocated and then cleaned up on the last
      reference.
      
      I have grepped high and low, and there really shouldn't be any broken
      uses of blk_init_queue() in the kernel drivers left.  The added bonus
      being blk_init_queue() error checking is explicit now, most of the
      drivers were broken in this regard (even IDE/SCSI).
      
      No drivers have embedded request queue structures. Drivers that don't
      use blk_init_queue() but blk_queue_make_request(), should allocate the
      queue with blk_alloc_queue(gfp_mask). I've converted all of them to do
      that, too. They can call blk_cleanup_queue() now too, using the define
      blk_put_queue() is probably cleaner though.
      ace416a3
  9. 17 Jul, 2003 1 commit
    • Adrian Bunk's avatar
      [PATCH] remove all #include <blk.h>'s · 117b5e29
      Adrian Bunk authored
      This causes blk.h to print a warning and removes all uses of blk.h.
      I've tested the compilation in 2.6.0-test1 with a .config that tries to
      compile as many drivers as possible.
      117b5e29
  10. 30 Apr, 2003 1 commit
  11. 24 Apr, 2003 1 commit
  12. 07 Apr, 2003 1 commit
    • Jens Axboe's avatar
      [PATCH] kill blk_queue_empty() · 68132d89
      Jens Axboe authored
      This finally kills of blk_queue_empty().  This is similar to the patch I
      recently sent to fix the SCSI logic as well.  A lot of drivers are doing
      this in our core, mainly because that is the way they always did it:
      
      start_queue:
      	if (blk_queue_empty(q))
      		return;
      
      	rq = elv_next_request(q);
      	if (!rq)
      		return;
      
      Patch simply removes the blk_queue_empty() check, and adds a check for
      !rq return from elv_next_request() if the driver didn't already do that.
      
      Additionally, the AS io scheduler can return NULL from
      elv_next_request() if it thinks this is best. This way we are also
      prepared for that to work well.
      
      Patch was done by Nick Piggin.
      68132d89
  13. 23 Mar, 2003 1 commit
    • Christoph Hellwig's avatar
      [PATCH] devfs_mk_dir simplification · 3736e632
      Christoph Hellwig authored
      All arguments except the name are unused - remove them and make the
      name printf-like to avoid a few snprintf in the surrounding code.
      
      (also fixes compilation to due a superflous endif in dvb core)
      3736e632
  14. 08 Mar, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] register_blkdev cleanups · 9a64905a
      Andrew Morton authored
      Patch from Andries.Brouwer@cwi.nl
      
      The following patch does the following:
      
      - static const char *blkdevs[MAX_BLKDEV]; disappears
      - get_blkdev_list, (un)register_blkdev, __bdevname
        are moved from block_dev.c to genhd.c
      - the third "fops" parameter of register_blkdev was unused;
        now removed everywhere
      - zillions of places had printk("cannot get major") upon
        error return from register_blkdev; removed all of these
        and inserted a single printk in register_blkdev.
      
      Of course the reason for the patch is that one fixed size
      array is eliminated.
      9a64905a
  15. 05 Dec, 2002 1 commit
  16. 04 Dec, 2002 1 commit
  17. 17 Nov, 2002 1 commit
  18. 28 Oct, 2002 1 commit
    • Alexander Viro's avatar
      [PATCH] xd.c · 7473f096
      Alexander Viro authored
      	* switched to private queues
      	* set ->queue and ->private_data
      	* switched to use of ->bd_disk and ->rq_disk
      	* cleaned up
      7473f096
  19. 18 Oct, 2002 1 commit
  20. 15 Oct, 2002 2 commits
  21. 05 Oct, 2002 1 commit
  22. 30 Sep, 2002 1 commit
    • Alexander Viro's avatar
      [PATCH] ->major_name inlined · db5605b2
      Alexander Viro authored
      char *major_name replaced with char disk_name[16];  All uses of ->major_name
      replaced with those of ->disk_name and (obviously) simplified big way.  Bunch
      of arrays, kmallocs, etc. is gone.
      db5605b2
  23. 22 Sep, 2002 1 commit
  24. 21 Sep, 2002 1 commit
    • Alexander Viro's avatar
      [PATCH] switch to add_disk() · bc2ce86f
      Alexander Viro authored
      Almost all callers of add_gendisk() were immediately followed by
      register_disk(disk, mk_kdev(disk->major,disk->first_minor),
      	      1<<disk->minor_shift, disk->fops, something);
      The only exception (DAC960.c) massaged to that form.
      New helper (add_disk(disk)) introduced and aforementioned sequence
      replaced with
      	set_capacity(disk, something);
      	add_disk(disk);
      bc2ce86f
  25. 07 Sep, 2002 3 commits
    • Alexander Viro's avatar
      [PATCH] (25/25) more cleanups of struct gendisk. · e86a3786
      Alexander Viro authored
      	* we remove the paritition 0 from ->part[] and put the old
      contents of ->part[0] into gendisk itself; indexes are shifted, obviously.
      	* ->part is allocated at add_gendisk() time and freed at del_gendisk()
      according to value of ->minor_shift; static arrays of hd_struct are gone
      from drivers, ditto for manual allocations a-la ide.  As the matter of fact,
      none of the drivers know about struct hd_struct now.
      e86a3786
    • Alexander Viro's avatar
      [PATCH] (24/25) disk capacity helpers · 3708de94
      Alexander Viro authored
      	new helpers - get_capacity(gendisk)/set_capacity(gendisk, sectors).
      Drivers switched to these; that eliminates most of the accesses to
      disk->part[]... in the drivers (and makes code more readable, while
      we are at it).  That had caught several bugs when minor had been
      used in place of minor>>minor_shift (acsi.c is especially nasty in
      that respect; I don't know if it had ever been used with multiple
      devices...)
      3708de94
    • Alexander Viro's avatar
      [PATCH] (2/25) Removing ->nr_real · 4e493886
      Alexander Viro authored
      	Since ->nr_real is always 1 now, we can remove that field completely.
      Removed the last remnants of switch in disk_name() (it could be killed
      a long time ago, I just forgot to remove the last two cases when md and i2o
      got converted).  Collapsed several instances of
      disk->part[minor - disk->first_minor] - in cases when we know that we deal
      with disk->part[0].
      4e493886
  26. 12 Aug, 2002 1 commit
  27. 10 Aug, 2002 2 commits
    • Alexander Viro's avatar
      [PATCH] partition table flush/read cleanup · 816ab591
      Alexander Viro authored
      Big One.  Flushing/rereading partition tables is taken from
      ->revalidate() for partitioned devices; now it's done in the
      caller (check_disk_change()).  BLKRRPART handling also moved
      out of drivers - they are still allowed to override it (DAC960
      and i2o are the only remaining ones), but common case is handled
      in fs/block_dev.c.
      
      Note: we are still only shifting stuff - bd_sem deadlocks in
      check_disk_change() are still there.  However, now we have all
      relevant code outside of drivers and that will allow to fix the
      thing (see next patches).
      816ab591
    • Alexander Viro's avatar
      [PATCH] clean up major_name · 7e06e792
      Alexander Viro authored
      ->major_name for per-disk gendisks set to full name - i.e.
      IDE gendisks have "hda", "hdb", etc. instead of "hd".
      As the result, we kill a lot of crap in check.c::disk_name().
      In particular, now we can afford ->minor_shift set to 0
      for ide-cd (disk_name() was the only obstacle)
      7e06e792
  28. 01 Aug, 2002 1 commit
  29. 30 Jul, 2002 1 commit
  30. 21 Jul, 2002 2 commits
    • Alexander Viro's avatar
      [PATCH] blk_ioctl() not exported anymore · 9d16ed71
      Alexander Viro authored
      blk_ioctl() not exported anymore; calls moved from drivers to block_dev.c.
      9d16ed71
    • Alexander Viro's avatar
      [PATCH] partition handling locking cleanups · 81d4c00c
      Alexander Viro authored
      Horrors with open/reread_partition exclusion are starting to get fixed.
      
      It's not the final variant, but at least we are getting the logics into
      one place; switch to final variant will happen once we get per-disk
      analog of gendisks.  New fields - ->bd_part_sem and ->bd_part_count.
      
      The latter counts the amount of opened partitions.  The former protects
      said count _and_ is held while we are rereading partition tables.
      Helpers - dev_part_lock()/dev_part_unlock() (currently taking kdev_t; that
      will change pretty soon).  No more ->open() and ->release() for partitions,
      all that logics went to generic code.  Lock hierachy is currently messy:
      
        ->bd_sem for partitions -> ->bd_part_sem -> ->bd_sem for entire disks
      
      Ugly, but that'll go away and to get the final variant of locking right
      now would take _really_ big patch - with a lot of steps glued together.
      The damn thing is large as it is...
      81d4c00c
  31. 11 Jun, 2002 4 commits
    • Alexander Viro's avatar
      [PATCH] (14/14) resync · 4fe6433a
      Alexander Viro authored
      end_request(int) turned to end_request(req, int); all old callers
      are converted to end_request(CURRENT, value).  Now we can start
      killing CURRENT/QUEUE - end_request() was the last obstacle to
      that.
      4fe6433a
    • Alexander Viro's avatar
      [PATCH] (13/14) resync · 718e92c5
      Alexander Viro authored
      ditto for DEVICE_INTR/CLEAR_INTR.  do_mfm/do_acsi/do_hd/... are
      explicitly declared in the drivers that use DEVICE_INTR stuff;
      DEVICE_INTR/CLEAR_INTR is gone from blk.h.
      718e92c5
    • Alexander Viro's avatar
      [PATCH] (12/14) resync · 9437b796
      Alexander Viro authored
      #define DEVICE_NAME ... removed from the drivers that never use
      that macro.
      9437b796
    • Alexander Viro's avatar
      [PATCH] (11/14) resync · 1b4199a5
      Alexander Viro authored
      monstrous cascade of #ifdefs is gone from blk.h.  This is the first
      step of cleanup - we move #define in question into the code that
      includes blk.h (i.e. DEVICE_NR, DEVICE_NAME and DEVICE_INTR are
      explicitly set by drivers).
      1b4199a5
  32. 31 May, 2002 1 commit