summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-08-25 17:37:38 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-29 21:51:43 -0400
commitc1225f01af085aea9c9d094febf157de9d07d861 (patch)
treea18446f394591470e3e296eafc72cd444be7fe5a /include/linux
parentccf1e0045eea8f98d60fc9327bcb14c958d2e4c7 (diff)
downloadlinux-c1225f01af085aea9c9d094febf157de9d07d861.tar.gz
linux-c1225f01af085aea9c9d094febf157de9d07d861.tar.bz2
linux-c1225f01af085aea9c9d094febf157de9d07d861.zip
scsi: bsg-lib: pass the release callback through bsg_setup_queue
The SAS code will need it. Also mark the name argument const to match bsg_register_queue. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/bsg-lib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/bsg-lib.h b/include/linux/bsg-lib.h
index e34dde2da0ef..1062f08e1a55 100644
--- a/include/linux/bsg-lib.h
+++ b/include/linux/bsg-lib.h
@@ -66,8 +66,9 @@ struct bsg_job {
void bsg_job_done(struct bsg_job *job, int result,
unsigned int reply_payload_rcv_len);
-struct request_queue *bsg_setup_queue(struct device *dev, char *name,
- bsg_job_fn *job_fn, int dd_job_size);
+struct request_queue *bsg_setup_queue(struct device *dev, const char *name,
+ bsg_job_fn *job_fn, int dd_job_size,
+ void (*release)(struct device *));
void bsg_job_put(struct bsg_job *job);
int __must_check bsg_job_get(struct bsg_job *job);