Deleted Added
full compact
g_raid3.c (190676) g_raid3.c (190878)
1/*-
2 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/geom/raid3/g_raid3.c 190676 2009-04-03 19:46:12Z thompsa $");
28__FBSDID("$FreeBSD: head/sys/geom/raid3/g_raid3.c 190878 2009-04-10 04:08:34Z thompsa $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/limits.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>

--- 3151 unchanged lines hidden (view full) ---

3188 free(sc->sc_disks, M_RAID3);
3189 free(sc, M_RAID3);
3190 return (NULL);
3191 }
3192
3193 G_RAID3_DEBUG(1, "Device %s created (%u components, id=%u).",
3194 sc->sc_name, sc->sc_ndisks, sc->sc_id);
3195
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/limits.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>

--- 3151 unchanged lines hidden (view full) ---

3188 free(sc->sc_disks, M_RAID3);
3189 free(sc, M_RAID3);
3190 return (NULL);
3191 }
3192
3193 G_RAID3_DEBUG(1, "Device %s created (%u components, id=%u).",
3194 sc->sc_name, sc->sc_ndisks, sc->sc_id);
3195
3196 sc->sc_rootmount = root_mount_hold("GRAID3", M_WAITOK);
3196 sc->sc_rootmount = root_mount_hold("GRAID3");
3197 G_RAID3_DEBUG(1, "root_mount_hold %p", sc->sc_rootmount);
3198
3199 /*
3200 * Run timeout.
3201 */
3202 timeout = atomic_load_acq_int(&g_raid3_timeout);
3203 callout_reset(&sc->sc_callout, timeout * hz, g_raid3_go, sc);
3204 return (sc->sc_geom);

--- 351 unchanged lines hidden ---
3197 G_RAID3_DEBUG(1, "root_mount_hold %p", sc->sc_rootmount);
3198
3199 /*
3200 * Run timeout.
3201 */
3202 timeout = atomic_load_acq_int(&g_raid3_timeout);
3203 callout_reset(&sc->sc_callout, timeout * hz, g_raid3_go, sc);
3204 return (sc->sc_geom);

--- 351 unchanged lines hidden ---