summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-01-22 05:42:40 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-01-22 05:42:40 +0000
commit2c84b47ae58662c9bced52b831de7ab4d816da23 (patch)
tree95d6f0707857d8231cc5d2d466778cbcd2b8a3c1 /sys
parent2b0ec37f72aaf75b7ca1922b2d4c58b3337396ca (diff)
The sr_rebuild function does not actually do the rebuild, it only starts
the rebuild thread. Rename it to sr_rebuild_start to make this clearer. ok krw@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/softraid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 44dacacbcb2..9ac85b35d7a 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.327 2014/01/22 05:11:36 jsing Exp $ */
+/* $OpenBSD: softraid.c,v 1.328 2014/01/22 05:42:39 jsing Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -135,7 +135,7 @@ int sr_already_assembled(struct sr_discipline *);
int sr_hotspare(struct sr_softc *, dev_t);
void sr_hotspare_rebuild(struct sr_discipline *);
int sr_rebuild_init(struct sr_discipline *, dev_t, int);
-void sr_rebuild(void *);
+void sr_rebuild_start(void *);
void sr_rebuild_thread(void *);
void sr_roam_chunks(struct sr_discipline *);
int sr_chunk_in_use(struct sr_softc *, dev_t);
@@ -3232,7 +3232,7 @@ sr_rebuild_init(struct sr_discipline *sd, dev_t dev, int hotspare)
sd->sd_meta->ssd_devname, devname);
sd->sd_reb_abort = 0;
- kthread_create_deferred(sr_rebuild, sd);
+ kthread_create_deferred(sr_rebuild_start, sd);
rv = 0;
done:
@@ -3550,7 +3550,7 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc,
rv = sr_meta_save(sd, SR_META_DIRTY);
if (sd->sd_vol_status == BIOC_SVREBUILD)
- kthread_create_deferred(sr_rebuild, sd);
+ kthread_create_deferred(sr_rebuild_start, sd);
sd->sd_ready = 1;
@@ -4578,7 +4578,7 @@ bad:
}
void
-sr_rebuild(void *arg)
+sr_rebuild_start(void *arg)
{
struct sr_discipline *sd = arg;
struct sr_softc *sc = sd->sd_sc;