Deleted Added
full compact
isc_sm.c (171568) isc_sm.c (172836)
1/*-
2 * Copyright (c) 2005-2007 Daniel Braniss <danny@cs.huji.ac.il>
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

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

25 *
26 */
27/*
28 | iSCSI - Session Manager
29 | $Id: isc_sm.c,v 1.30 2007/04/22 09:53:09 danny Exp danny $
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005-2007 Daniel Braniss <danny@cs.huji.ac.il>
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

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

25 *
26 */
27/*
28 | iSCSI - Session Manager
29 | $Id: isc_sm.c,v 1.30 2007/04/22 09:53:09 danny Exp danny $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/dev/iscsi/initiator/isc_sm.c 171568 2007-07-24 15:35:02Z scottl $");
33__FBSDID("$FreeBSD: head/sys/dev/iscsi/initiator/isc_sm.c 172836 2007-10-20 23:23:23Z julian $");
34
35#include "opt_iscsi_initiator.h"
36
37#include <sys/param.h>
38#include <sys/kernel.h>
39#include <sys/conf.h>
40#include <sys/systm.h>
41#include <sys/malloc.h>

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

582
583#if __FreeBSD_version >= 700000
584 destroy_dev(sp->dev);
585#endif
586
587 sdebug(3, "terminated");
588
589 wakeup(sp);
34
35#include "opt_iscsi_initiator.h"
36
37#include <sys/param.h>
38#include <sys/kernel.h>
39#include <sys/conf.h>
40#include <sys/systm.h>
41#include <sys/malloc.h>

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

582
583#if __FreeBSD_version >= 700000
584 destroy_dev(sp->dev);
585#endif
586
587 sdebug(3, "terminated");
588
589 wakeup(sp);
590 kthread_exit(0);
590 kproc_exit(0);
591}
592
593#if 0
594static int
595isc_dump_options(SYSCTL_HANDLER_ARGS)
596{
597 int error;
598 isc_session_t *sp;

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

777 mtx_init(&sp->hld_mtx, "iscsi-hld", NULL, MTX_SPIN);
778#endif
779 mtx_init(&sp->io_mtx, "iscsi-io", NULL, MTX_DEF);
780
781 isc_add_sysctls(sp);
782
783 sp->flags |= ISC_SM_RUN;
784
591}
592
593#if 0
594static int
595isc_dump_options(SYSCTL_HANDLER_ARGS)
596{
597 int error;
598 isc_session_t *sp;

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

777 mtx_init(&sp->hld_mtx, "iscsi-hld", NULL, MTX_SPIN);
778#endif
779 mtx_init(&sp->io_mtx, "iscsi-io", NULL, MTX_DEF);
780
781 isc_add_sysctls(sp);
782
783 sp->flags |= ISC_SM_RUN;
784
785 return kthread_create(ism_proc, sp, &sp->stp, 0, 0, "ism_%d", sp->sid);
785 return kproc_create(ism_proc, sp, &sp->stp, 0, 0, "ism_%d", sp->sid);
786}
786}