block/bsg: move queue creation into bsg_setup_queue
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Jan 2017 12:25:02 +0000 (15:25 +0300)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:08:35 +0000 (15:08 -0700)
commit8ae94eb65be9425af4d57a4f4cfebfdf03081e93
tree79ae2a0249299fc20b42dd877bf01390f50a8547
parente9c787e65c0c36529745be47d490d998b4b6e589
block/bsg: move queue creation into bsg_setup_queue

Simply the boilerplate code needed for bsg nodes a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bsg-lib.c
drivers/scsi/scsi_transport_fc.c
drivers/scsi/scsi_transport_iscsi.c
include/linux/bsg-lib.h