]> git.karo-electronics.de Git - linux-beck.git/commit
scsi/i2o: restore ioctl changes
authorArnd Bergmann <arnd@arndb.de>
Thu, 8 Jul 2010 12:57:03 +0000 (14:57 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:26:29 +0000 (18:26 +0200)
commit2daa672b1a736d41b3e7a2e3a05f1909a1f96530
tree17a9b1f945307192e6cb9dec78472e39da32e727
parent409f3499a2cfcd1e9c2857c53af7fcce069f027f
scsi/i2o: restore ioctl changes

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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/message/i2o/i2o_block.c