aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_frontend_cam_sim.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-06-20 12:43:54 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-06-20 12:43:54 +0000
commit7834ea889177aceb4bd38c22a43383f49b197d12 (patch)
tree287352e4fccaca8bdaefed2866ef09f449dfb46a /sys/cam/ctl/ctl_frontend_cam_sim.c
parent2d8b28765ca359b200f2dc0a46f82be89fd93e9d (diff)
downloadsrc-7834ea889177aceb4bd38c22a43383f49b197d12.tar.gz
src-7834ea889177aceb4bd38c22a43383f49b197d12.zip
Bring per-port LUN enable/disable code up to date:
- remove last remnants of never implemented multiple targets support; - implement missing support for LUN mapping in this area. Due to existing locking constraints LUN mapping code is practically unlocked at this point. Hopefully it is not racy enough to live until somebody get idea how to call sleeping fronend methods under lock also taken by the same frontend in non-sleepable context. :(
Notes
Notes: svn path=/head/; revision=284640
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_cam_sim.c')
-rw-r--r--sys/cam/ctl/ctl_frontend_cam_sim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cam/ctl/ctl_frontend_cam_sim.c b/sys/cam/ctl/ctl_frontend_cam_sim.c
index e779e48f6004..3abc572f2a62 100644
--- a/sys/cam/ctl/ctl_frontend_cam_sim.c
+++ b/sys/cam/ctl/ctl_frontend_cam_sim.c
@@ -99,8 +99,8 @@ int cfcs_init(void);
static void cfcs_poll(struct cam_sim *sim);
static void cfcs_online(void *arg);
static void cfcs_offline(void *arg);
-static int cfcs_lun_enable(void *arg, struct ctl_id target_id, int lun_id);
-static int cfcs_lun_disable(void *arg, struct ctl_id target_id, int lun_id);
+static int cfcs_lun_enable(void *arg, int lun_id);
+static int cfcs_lun_disable(void *arg, int lun_id);
static void cfcs_datamove(union ctl_io *io);
static void cfcs_done(union ctl_io *io);
void cfcs_action(struct cam_sim *sim, union ccb *ccb);
@@ -303,12 +303,12 @@ cfcs_offline(void *arg)
}
static int
-cfcs_lun_enable(void *arg, struct ctl_id target_id, int lun_id)
+cfcs_lun_enable(void *arg, int lun_id)
{
return (0);
}
static int
-cfcs_lun_disable(void *arg, struct ctl_id target_id, int lun_id)
+cfcs_lun_disable(void *arg, int lun_id)
{
return (0);
}