1. 11 8月, 2010 8 次提交
  2. 08 8月, 2010 5 次提交
    • A
      scsi/i2o: restore ioctl changes · 2daa672b
      Arnd Bergmann 提交于
      This restores the changes from "scsi/i2o_block: cleanup ioctl
      handling", which accidentally got reverted.
      
      Origignal changelog:
            This fixes the ioctl function of the i2o_block driver, which
            has multiple problems:
      
            * The BLKI2OSRSTRAT and BLKI2OSWSTRAT commands always return
              -ENOTTY on success, where they should return 0.
            * Support for 32 bit compat is missing
            * The driver should use the .ioctl function and because
              .locked_ioctl is going away.
      
            The use of the big kernel lock remains for now, but gets
            made explictit in the ioctl function.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      2daa672b
    • A
      block: push down BKL into .open and .release · 6e9624b8
      Arnd Bergmann 提交于
      The open and release block_device_operations are currently
      called with the BKL held. In order to change that, we must
      first make sure that all drivers that currently rely
      on this have no regressions.
      
      This blindly pushes the BKL into all .open and .release
      operations for all block drivers to prepare for the
      next step. The drivers can subsequently replace the BKL
      with their own locks or remove it completely when it can
      be shown that it is not needed.
      
      The functions blkdev_get and blkdev_put are the only
      remaining users of the big kernel lock in the block
      layer, besides a few uses in the ioctl code, none
      of which need to serialize with blkdev_{get,put}.
      
      Most of these two functions is also under the protection
      of bdev->bd_mutex, including the actual calls to
      ->open and ->release, and the common code does not
      access any global data structures that need the BKL.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      6e9624b8
    • A
      block: push down BKL into .locked_ioctl · 8a6cfeb6
      Arnd Bergmann 提交于
      As a preparation for the removal of the big kernel
      lock in the block layer, this removes the BKL
      from the common ioctl handling code, moving it
      into every single driver still using it.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      8a6cfeb6
    • A
      scsi/i2o_block: cleanup ioctl handling · 34484062
      Arnd Bergmann 提交于
      This fixes the ioctl function of the i2o_block driver, which
      has multiple problems:
      
      * The BLKI2OSRSTRAT and BLKI2OSWSTRAT commands always return
        -ENOTTY on success, where they should return 0.
      * Support for 32 bit compat is missing
      * The driver should use the .ioctl function and because
        .locked_ioctl is going away.
      
      The use of the big kernel lock remains for now, but gets
      made explictit in the ioctl function.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      34484062
    • C
      block: remove wrappers for request type/flags · 33659ebb
      Christoph Hellwig 提交于
      Remove all the trivial wrappers for the cmd_type and cmd_flags fields in
      struct requests.  This allows much easier grepping for different request
      types instead of unwinding through macros.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
      33659ebb
  3. 28 7月, 2010 16 次提交
  4. 17 6月, 2010 1 次提交
  5. 28 5月, 2010 1 次提交
  6. 24 5月, 2010 1 次提交
  7. 26 4月, 2010 1 次提交
  8. 11 4月, 2010 7 次提交