diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2009-08-03 15:42:33 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 18:52:14 -0400 |
commit | 18ee70c9d7b2dcd312a1f8c6536841e7c0fea5ca (patch) | |
tree | fc147f1704a72f2e79b4b2b4e3aedee95b26f601 /include/scsi/scsi_dh.h | |
parent | 21fab1d0595eacf781705ec3509012a28f298245 (diff) |
[SCSI] scsi_dh: add the interface scsi_dh_set_params()
When we moved the device handler functionality from dm layer to SCSI layer
we dropped the parameter functionality.
This path adds an interface to scsi dh layer to set device handler
parameters.
Basically, multipath layer need to create a string with all the parameters
and call scsi_dh_set_params() after it called scsi_dh_attach() on a
device.
If a device handler provides such an interface it will handle the parameters
as it expects them.
Reported-by: Eddie Williams <Eddie.Williams@steeleye.com>
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Tested-by: Eddie Williams <Eddie.Williams@steeleye.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi/scsi_dh.h')
-rw-r--r-- | include/scsi/scsi_dh.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi/scsi_dh.h b/include/scsi/scsi_dh.h index 33efce20c26c..ff2407405b42 100644 --- a/include/scsi/scsi_dh.h +++ b/include/scsi/scsi_dh.h | |||
@@ -60,6 +60,7 @@ extern int scsi_dh_activate(struct request_queue *); | |||
60 | extern int scsi_dh_handler_exist(const char *); | 60 | extern int scsi_dh_handler_exist(const char *); |
61 | extern int scsi_dh_attach(struct request_queue *, const char *); | 61 | extern int scsi_dh_attach(struct request_queue *, const char *); |
62 | extern void scsi_dh_detach(struct request_queue *); | 62 | extern void scsi_dh_detach(struct request_queue *); |
63 | extern int scsi_dh_set_params(struct request_queue *, const char *); | ||
63 | #else | 64 | #else |
64 | static inline int scsi_dh_activate(struct request_queue *req) | 65 | static inline int scsi_dh_activate(struct request_queue *req) |
65 | { | 66 | { |
@@ -77,4 +78,8 @@ static inline void scsi_dh_detach(struct request_queue *q) | |||
77 | { | 78 | { |
78 | return; | 79 | return; |
79 | } | 80 | } |
81 | static inline int scsi_dh_set_params(struct request_queue *req, const char *params) | ||
82 | { | ||
83 | return -SCSI_DH_NOSYS; | ||
84 | } | ||
80 | #endif | 85 | #endif |