Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101580
b: refs/heads/master
c: fe9233f
h: refs/heads/master
v: v3
  • Loading branch information
Chandra Seetharaman authored and James Bottomley committed Jul 15, 2008
1 parent 08d00bb commit 821cf3d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7f305e9a08040649b0800245e67708df58cdb55
refs/heads/master: fe9233fb6914a0eb20166c967e3020f7f0fba2c9
6 changes: 5 additions & 1 deletion trunk/drivers/md/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ config DM_ZERO
config DM_MULTIPATH
tristate "Multipath target"
depends on BLK_DEV_DM
select SCSI_DH
# nasty syntax but means make DM_MULTIPATH independent
# of SCSI_DH if the latter isn't defined but if
# it is, DM_MULTIPATH must depend on it. We get a build
# error if SCSI_DH=m and DM_MULTIPATH=y
depends on SCSI_DH || !SCSI_DH
---help---
Allow volume managers to support multipath hardware.

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,8 @@ static int parse_hw_handler(struct arg_set *as, struct multipath *m)
request_module("scsi_dh_%s", m->hw_handler_name);
if (scsi_dh_handler_exist(m->hw_handler_name) == 0) {
ti->error = "unknown hardware handler type";
kfree(m->hw_handler_name);
m->hw_handler_name = NULL;
return -EINVAL;
}
consume(as, hw_argc - 1);
Expand Down
12 changes: 11 additions & 1 deletion trunk/include/scsi/scsi_dh.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ enum {
SCSI_DH_NOSYS,
SCSI_DH_DRIVER_MAX,
};

#if defined(CONFIG_SCSI_DH) || defined(CONFIG_SCSI_DH_MODULE)
extern int scsi_dh_activate(struct request_queue *);
extern int scsi_dh_handler_exist(const char *);
#else
static inline int scsi_dh_activate(struct request_queue *req)
{
return 0;
}
static inline int scsi_dh_handler_exist(const char *name)
{
return 0;
}
#endif

0 comments on commit 821cf3d

Please sign in to comment.