1. 11 5月, 2009 1 次提交
  2. 28 4月, 2009 1 次提交
    • T
      block: replace end_request() with [__]blk_end_request_cur() · f06d9a2b
      Tejun Heo 提交于
      end_request() has been kept around for backward compatibility;
      however, it's about time for it to go away.
      
      * There aren't too many users left.
      
      * Its use of @updtodate is pretty confusing.
      
      * In some cases, newer code ends up using mixture of end_request() and
        [__]blk_end_request[_all](), which is way too confusing.
      
      So, add [__]blk_end_request_cur() and replace end_request() with it.
      Most conversions are straightforward.  Noteworthy ones are...
      
      * paride/pcd: next_request() updated to take 0/-errno instead of 1/0.
      
      * paride/pf: pf_end_request() and next_request() updated to take
        0/-errno instead of 1/0.
      
      * xd: xd_readwrite() updated to return 0/-errno instead of 1/0.
      
      * mtd/mtd_blkdevs: blktrans_discard_request() updated to return
        0/-errno instead of 1/0.  Unnecessary local variable res
        initialization removed from mtd_blktrans_thread().
      
      [ Impact: cleanup ]
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NJoerg Dorchain <joerg@dorchain.net>
      Acked-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NLaurent Vivier <Laurent@lvivier.info>
      Cc: Tim Waugh <tim@cyberelk.net>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
      Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Pete Zaitcev <zaitcev@redhat.com>
      Cc: unsik Kim <donari75@gmail.com>
      f06d9a2b
  3. 06 12月, 2008 1 次提交
  4. 31 10月, 2008 1 次提交
    • R
      i2o: fix kernel-doc warnings · b77b0ef2
      Randy Dunlap 提交于
      Fixup i2o kernel-doc warnings:
      
      Warning(linux-next-20081022//drivers/message/i2o/i2o_block.c:579): No description found for parameter 'bdev'
      Warning(linux-next-20081022//drivers/message/i2o/i2o_block.c:579): No description found for parameter 'mode'
      Warning(linux-next-20081022//drivers/message/i2o/i2o_block.c:608): No description found for parameter 'disk'
      Warning(linux-next-20081022//drivers/message/i2o/i2o_block.c:608): No description found for parameter 'mode'
      Warning(linux-next-20081022//drivers/message/i2o/i2o_block.c:657): No description found for parameter 'bdev'
      Warning(linux-next-20081022//drivers/message/i2o/i2o_block.c:657): No description found for parameter 'mode'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b77b0ef2
  5. 21 10月, 2008 2 次提交
    • A
      [PATCH] switch i2o · f3f6015b
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      f3f6015b
    • A
      [PATCH] beginning of methods conversion · d4430d62
      Al Viro 提交于
      To keep the size of changesets sane we split the switch by drivers;
      to keep the damn thing bisectable we do the following:
      	1) rename the affected methods, add ones with correct
      prototypes, make (few) callers handle both.  That's this changeset.
      	2) for each driver convert to new methods.  *ALL* drivers
      are converted in this series.
      	3) kill the old (renamed) methods.
      
      Note that it _is_ a flagday; all in-tree drivers are converted and by the
      end of this series no trace of old methods remain.  The only reason why
      we do that this way is to keep the damn thing bisectable and allow per-driver
      debugging if anything goes wrong.
      
      New methods:
      	open(bdev, mode)
      	release(disk, mode)
      	ioctl(bdev, mode, cmd, arg)		/* Called without BKL */
      	compat_ioctl(bdev, mode, cmd, arg)
      	locked_ioctl(bdev, mode, cmd, arg)	/* Called with BKL, legacy */
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d4430d62
  6. 29 4月, 2008 1 次提交
  7. 28 1月, 2008 1 次提交
  8. 06 11月, 2007 1 次提交
  9. 24 10月, 2007 1 次提交
  10. 16 10月, 2007 1 次提交
  11. 01 8月, 2007 1 次提交
    • M
      fix integer overflow warning in i2o_block · db7526f9
      Meelis Roos 提交于
      drivers/message/i2o/i2o_block.c: In function 'i2o_block_transfer':
      drivers/message/i2o/i2o_block.c:837: warning: integer overflow in expression
      
      msg->u.head[1] = cpu_to_le32(I2O_CMD_PRIVATE << 24 | HOST_TID << 12 | tid);
      and I2O_CMD_PRIVATE is defined as 0xFF.  This gets "0xFF0100 | tid" and fits
      into 32-bit unsigned but not into 32-bit signed integer properly.  Target
      value is defined as u32 so the claculation does not fit during computation.
      
      Change local variable tid to u32 so the whole expression is of u32 type and
      fits well into u32 result.
      Signed-off-by: NMeelis Roos <mroos@linux.ee>
      Cc: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      db7526f9
  12. 24 7月, 2007 1 次提交
  13. 20 7月, 2007 1 次提交
    • P
      mm: Remove slab destructors from kmem_cache_create(). · 20c2df83
      Paul Mundt 提交于
      Slab destructors were no longer supported after Christoph's
      c59def9f change. They've been
      BUGs for both slab and slub, and slob never supported them
      either.
      
      This rips out support for the dtor pointer from kmem_cache_create()
      completely and fixes up every single callsite in the kernel (there were
      about 224, not including the slab allocator definitions themselves,
      or the documentation references).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      20c2df83
  14. 18 7月, 2007 1 次提交
  15. 28 3月, 2007 1 次提交
    • V
      [PATCH] i2o: block IO errors on i2o disk · d1985ad1
      Vasily Averin 提交于
      I2O subsystem has been broken in mainstream several months ago (after
      2.6.18).  Commit 4aff5e23 from Jens
      Axboe split struct request ->flags into two parts: cmd_type and
      cmd_flags.
      
      In i2o layer this patch has replaced flag REQ_SPECIAL by the according
      cmd_type.  However i2o has used REQ_SPECIAL not as command type but as
      driver-specific flag for the debug purposes.  As result all i2o requests
      have type "special" now, are not processed to the hardware and fail with
      I/O error:
      
         i2o/hda:<3>Buffer I/O error on device i2o/hda, logical block 0
        Buffer I/O error on device i2o/hda, logical block 0
        Buffer I/O error on device i2o/hda, logical block 0
         unable to read partition table
        block-osm: device added (TID: 207): i2o/hda
      
      The following patch removes the extra debug checks without any drawbacks and
      restores the normal driver's work.
      Signed-off-by: NVasily Averin <vvs@sw.ru>
      Acked-by: NMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d1985ad1
  16. 08 12月, 2006 1 次提交
  17. 22 11月, 2006 1 次提交
  18. 01 10月, 2006 1 次提交
    • J
      [PATCH] Split struct request ->flags into two parts · 4aff5e23
      Jens Axboe 提交于
      Right now ->flags is a bit of a mess: some are request types, and
      others are just modifiers. Clean this up by splitting it into
      ->cmd_type and ->cmd_flags. This allows introduction of generic
      Linux block message types, useful for sending generic Linux commands
      to block devices.
      Signed-off-by: NJens Axboe <axboe@suse.de>
      4aff5e23
  19. 27 6月, 2006 1 次提交
  20. 27 3月, 2006 1 次提交
  21. 09 1月, 2006 1 次提交
    • C
      [PATCH] Add block_device_operations.getgeo block device method · a885c8c4
      Christoph Hellwig 提交于
      HDIO_GETGEO is implemented in most block drivers, and all of them have to
      duplicate the code to copy the structure to userspace, as well as getting
      the start sector.  This patch moves that to common code [1] and adds a
      ->getgeo method to fill out the raw kernel hd_geometry structure.  For many
      drivers this means ->ioctl can go away now.
      
      [1] the s390 block drivers are odd in this respect.  xpram sets ->start
          to 4 always which seems more than odd, and the dasd driver shifts
          the start offset around, probably because of it's non-standard
          sector size.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: Jens Axboe <axboe@suse.de>
      Cc: <mike.miller@hp.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a885c8c4
  22. 07 1月, 2006 4 次提交
  23. 06 1月, 2006 1 次提交
    • T
      [BLOCK] add @uptodate to end_that_request_last() and @error to rq_end_io_fn() · 8ffdc655
      Tejun Heo 提交于
      add @uptodate argument to end_that_request_last() and @error
      to rq_end_io_fn().  there's no generic way to pass error code
      to request completion function, making generic error handling
      of non-fs request difficult (rq->errors is driver-specific and
      each driver uses it differently).  this patch adds @uptodate
      to end_that_request_last() and @error to rq_end_io_fn().
      
      for fs requests, this doesn't really matter, so just using the
      same uptodate argument used in the last call to
      end_that_request_first() should suffice.  imho, this can also
      help the generic command-carrying request jens is working on.
      Signed-off-by: Ntejun heo <htejun@gmail.com>
      Signed-Off-By: NJens Axboe <axboe@suse.de>
      8ffdc655
  24. 24 6月, 2005 4 次提交
    • M
      [PATCH] I2O: Lindent run and replacement of printk through osm printing functions · f33213ec
      Markus Lidel 提交于
      Lindent run and replaced printk() through the corresponding osm_*() function
      Signed-off-by: NMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f33213ec
    • M
      [PATCH] I2O: second code cleanup of sparse warnings and unneeded syncronization · 9e87545f
      Markus Lidel 提交于
      Changes:
       - Added header "core.h" for i2o_core.ko internal definitions
       - More sparse fixes
       - Changed display of TID's in sysfs attributes from XXX to 0xXXX
       - Use the right functions for accessing I/O and normal memory
       - Removed error handling of SCSI device errors and let the SCSI layer
         take care of it
       - Added new device / removed device handling to SCSI-OSM
       - Make status access volatile
       - Cleaned up activation of I2O controller
       - Removed unnecessary wmb() and rmb() calls
       - Use own struct i2o_io for I/O memory instead of struct i2o_dma
      Signed-off-by: NMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9e87545f
    • M
      [PATCH] I2O: new sysfs attributes and Adaptec specific block device access and 64-bit DMA support · f10378ff
      Markus Lidel 提交于
      Changes:
       - Added Bus-OSM which could be used by user space programs to reset a
         channel on the controller
       - Make ioctl's in Config-OSM obsolete in prefer for sysfs attributes and
         move those to its own file
       - Added sysfs attribute for firmware read and write access for I2O
         controllers
       - Added special handling of firmware read and write access for Adaptec
         controllers
       - Added vendor id and product id as sysfs-attribute to Executive classes
       - Added automatic notification of LCT change handling to Exec-OSM
       - Added flushing function to Block-OSM for later barrier implementation
       - Use PRIVATE messages for Block access on Adaptec controllers, which are
         faster then BLOCK class access
       - Cleaned up support for Promise controller
       - New messages are now detected using the IRQ status register as
         suggested by the I2O spec
       - Added i2o_dma_high() and i2o_dma_low() functions
       - Added facility for SG tablesize calculation when using 32-bit and
         64-bit DMA addresses
       - Added i2o_dma_map_single() and i2o_dma_map_sg() which could build the
         SG list for 32-bit as well as 64-bit DMA addresses
      Signed-off-by: NMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f10378ff
    • M
      [PATCH] I2O: first code cleanup of spare warnings and unused functions · f88e119c
      Markus Lidel 提交于
      Changes:
      
       - Removed unnecessary checking of NULL before calling kfree()
       - Make some functions static
       - Changed pr_debug() into osm_debug()
       - Use i2o_msg_in_to_virt() for getting a pointer to the message frame
       - Cleaned up some comments
       - Changed some le32_to_cpu() into readl() where necessary
       - Make error messages of OSM's look the same
       - Cleaned up error handling in i2o_block_end_request()
       - Removed unused error handling of failed messages in Block-OSM, which
         are not allowed by the I2O spec
       - Corrected the blocksize detection in i2o_block
       - Added hrt and lct sysfs-attribute to controller
       - Call done() function in SCSI-OSM after freeing DMA buffers
       - Removed unneeded variable for message size calculation in
         i2o_scsi_queuecommand()
       - Make some changes to remove sparse warnings
       - Reordered some functions
       - Cleaned up controller initialization
       - Replaced some magic numbers by defines
       - Removed unnecessary dma_sync_single_for_cpu() call on coherent DMA
       - Removed some unused fields in i2o_controller and removed some unused
         functions
      Signed-off-by: NMarkus Lidel <Markus.Lidel@shadowconnect.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f88e119c
  25. 14 6月, 2005 1 次提交
  26. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4