summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-01-03 07:28:47 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-01-03 07:28:47 +0000
commit92c42d6f93d4295c30251ef4dbab97460e46a1f1 (patch)
tree215b59bfcacdb0b86f37529daa5ff8c1e43a380a /sys
parentfea5fe90e3eb7bd5f6c85dbb022fc84e20dce6b3 (diff)
mpi_bio_get_pg0_raid is only called from a process context. let the cfg
requests sleep rather than poll for completion.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/mpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 9f70be3b3f2..e31993dbe85 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.130 2010/01/03 07:26:44 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.131 2010/01/03 07:28:46 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -2731,7 +2731,7 @@ mpi_bio_get_pg0_raid(struct mpi_softc *sc, int id)
struct mpi_cfg_raid_vol_pg0 *rpg0;
/* get IOC page 2 */
- if (mpi_cfg_page(sc, 0, &sc->sc_cfg_hdr, 1, sc->sc_vol_page,
+ if (mpi_req_cfg_page(sc, 0, 0, &sc->sc_cfg_hdr, 1, sc->sc_vol_page,
sc->sc_cfg_hdr.page_length * 4) != 0) {
DNPRINTF(MPI_D_IOCTL, "%s: mpi_bio_get_pg0_raid unable to "
"fetch IOC page 2\n", DEVNAME(sc));
@@ -2761,10 +2761,10 @@ mpi_bio_get_pg0_raid(struct mpi_softc *sc, int id)
/* get raid vol page 0 */
address = sc->sc_vol_list[id].vol_id |
(sc->sc_vol_list[id].vol_bus << 8);
- if (mpi_cfg_header(sc, MPI_CONFIG_REQ_PAGE_TYPE_RAID_VOL, 0,
+ if (mpi_req_cfg_header(sc, MPI_CONFIG_REQ_PAGE_TYPE_RAID_VOL, 0, 0,
address, &hdr) != 0)
goto done;
- if (mpi_cfg_page(sc, address, &hdr, 1, rpg0, len)) {
+ if (mpi_req_cfg_page(sc, address, 0, &hdr, 1, rpg0, len)) {
DNPRINTF(MPI_D_RAID, "%s: can't get RAID vol cfg page 0\n",
DEVNAME(sc));
goto done;