1. 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
  2. 02 9月, 2006 1 次提交
  3. 04 7月, 2006 1 次提交
    • I
      [PATCH] lockdep: floppy.c irq release fix · 3e541a4a
      Ingo Molnar 提交于
      The lock validator triggered a number of bugs in the floppy driver, all
      related to the floppy driver allocating and freeing irq and dma resources from
      interrupt context.  The initial solution was to use schedule_work() to push
      this into process context, but this caused further problems: for example the
      current floppy driver in -mm2 is totally broken and all floppy commands time
      out with an error.  (as reported by Barry K.  Nathan)
      
      This patch tries another solution: simply get rid of all that dynamic IRQ and
      DMA allocation/freeing.  I doubt it made much sense back in the heydays of
      floppies (if two devices raced for DMA or IRQ resources then we didnt handle
      those cases too gracefully anyway), and today it makes near zero sense.
      
      So the new code does the simplest and most straightforward thing: allocate IRQ
      and DMA resources at module init time, and free them at module removal time.
      Dont try to release while the driver is operational.  This, besides making the
      floppy driver functional again has an added bonus, floppy IRQ stats are
      finally persistent and visible in /proc/interrupts:
      
        6: 63 XT-PIC-level floppy
      
      Besides normal floppy IO i have also tested IO error handling, motor-off
      timeouts, etc.  - and everything seems to be working fine.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3e541a4a
  4. 27 6月, 2006 4 次提交
  5. 28 4月, 2006 1 次提交
  6. 29 3月, 2006 1 次提交
  7. 27 3月, 2006 1 次提交
  8. 26 3月, 2006 1 次提交
  9. 23 3月, 2006 1 次提交
  10. 15 1月, 2006 1 次提交
  11. 09 1月, 2006 2 次提交
    • T
      [PATCH] drivers/block: Use ARRAY_SIZE macro · 945f390f
      Tobias Klauser 提交于
      Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a
      duplicate of ARRAY_SIZE. Some trailing whitespaces are also removed.
      
      drivers/block/acsi* has been left out as it's marked BROKEN.
      Signed-off-by: NTobias Klauser <tklauser@nuerscht.ch>
      Cc: Jens Axboe <axboe@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      945f390f
    • 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
  12. 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
  13. 24 11月, 2005 1 次提交
  14. 09 11月, 2005 2 次提交
  15. 08 11月, 2005 1 次提交
  16. 30 10月, 2005 1 次提交
  17. 10 9月, 2005 1 次提交
  18. 06 9月, 2005 2 次提交
  19. 06 5月, 2005 1 次提交
  20. 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