scsi: bsg: refactor bsg_ioctl
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Nov 2018 19:12:25 +0000 (20:12 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:26:55 +0000 (21:26 -0500)
commitccf3209f0044e46236e238494181ae1a73275fad
treee6d5b48738233da62a5d755c35003433c746ea0e
parentc6ded86a161dcf46697e79afafe8c7155d98ad63
scsi: bsg: refactor bsg_ioctl

Move all actual functionality into helpers, just leaving the dispatch in
this function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Tested-by: Benjamin Block <bblock@linux.ibm.com>
Tested-by: Avri Altman <avri.altman@wdc.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
block/bsg.c