summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-01-22 05:42:39 +0000
committerjsing <jsing@openbsd.org>2014-01-22 05:42:39 +0000
commitb78fc721c0f0c9344c86824c0a08c7f5b5b307e4 (patch)
treef903db1502989ddf2f1c8546a0e7445f6d68e848 /sys/dev/softraid.c
parenttweak ubcmtp comment (diff)
downloadwireguard-openbsd-b78fc721c0f0c9344c86824c0a08c7f5b5b307e4.tar.xz
wireguard-openbsd-b78fc721c0f0c9344c86824c0a08c7f5b5b307e4.zip
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/dev/softraid.c')
-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;