]> git.baikalelectronics.ru Git - kernel.git/commit
compat_ioctl: bsg: add handler
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 Mar 2019 16:13:06 +0000 (17:13 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:33:21 +0000 (09:33 +0100)
commitfd86d8180d4e5a2dc789778c99f070944a2466b8
tree2c146ba416fb1660db81e8e900fb49fb59b1b8bc
parent819b3b8190678945a03b264e88e73f633637f926
compat_ioctl: bsg: add handler

bsg_ioctl() calls into scsi_cmd_ioctl() for a couple of generic commands
and relies on fs/compat_ioctl.c to handle it correctly in compat mode.

Adding a private compat_ioctl() handler avoids that round-trip and lets
us get rid of the generic emulation once this is done.

Note that bsg implements an SG_IO command that is different from the
other drivers and does not need emulation.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
block/bsg.c