]> git.baikalelectronics.ru Git - kernel.git/commit
scsi/i2o_block: cleanup ioctl handling
authorArnd Bergmann <arnd@arndb.de>
Wed, 7 Jul 2010 14:51:23 +0000 (16:51 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:24:31 +0000 (18:24 +0200)
commitd8e6644d3fdbb3f976fd269cc54430bf73aae8c9
treed1eb872d04cc06b474d299746207864f0e085bd8
parent5fa1183b4715e159202dba86f0a9b00c2e72f39e
scsi/i2o_block: cleanup ioctl handling

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