diff options
author | marius <marius@FreeBSD.org> | 2013-12-29 20:41:32 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2013-12-29 20:41:32 +0000 |
commit | a6fa8f7ccfb7f91fd05c44d5831c87445fab7dc0 (patch) | |
tree | 2831d13c2e26be51f228d05b258bead4b56c9071 /sys/dev/mpt/mpt_raid.c | |
parent | 6a5519cacac5101e3bf00a44c465c56b17ecc931 (diff) | |
download | FreeBSD-src-a6fa8f7ccfb7f91fd05c44d5831c87445fab7dc0.zip FreeBSD-src-a6fa8f7ccfb7f91fd05c44d5831c87445fab7dc0.tar.gz |
- Remove a redundant variable in mpt_pci_attach().
- #if 0 the currently unused paired port linking and unlinking of dual
adapters.
- Simplify MSI/MSI-X allocation and release. For a single one, we don't need
to fiddle with the MSI/MSI-X count and pci_release_msi(9) is smart enough
to just do nothing in case of INTx.
- Canonicalize actions taken on attach failure and detach.
- Remove the remainder of incomplete support for older FreeBSD versions.
MFC after: 1 week
Diffstat (limited to 'sys/dev/mpt/mpt_raid.c')
-rw-r--r-- | sys/dev/mpt/mpt_raid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mpt/mpt_raid.c b/sys/dev/mpt/mpt_raid.c index ee25e18..6b45b54 100644 --- a/sys/dev/mpt/mpt_raid.c +++ b/sys/dev/mpt/mpt_raid.c @@ -636,7 +636,7 @@ mpt_spawn_raid_thread(struct mpt_softc *mpt) MPT_LOCK(mpt); xpt_freeze_simq(mpt->phydisk_sim, 1); MPT_UNLOCK(mpt); - error = mpt_kthread_create(mpt_raid_thread, mpt, + error = kproc_create(mpt_raid_thread, mpt, &mpt->raid_thread, /*flags*/0, /*altstack*/0, "mpt_raid%d", mpt->unit); if (error != 0) { @@ -719,7 +719,7 @@ mpt_raid_thread(void *arg) mpt->raid_thread = NULL; wakeup(&mpt->raid_thread); MPT_UNLOCK(mpt); - mpt_kthread_exit(0); + kproc_exit(0); } #if 0 |