aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
committerWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
commita163d034fadcfb4a25ca34a2ba5f491c47b6ff69 (patch)
tree9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/dev/raidframe
parent8f3e32c2b6b9f392e096f096653596f55f2134ae (diff)
Notes
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_freebsdkintf.c14
-rw-r--r--sys/dev/raidframe/rf_shutdown.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c
index 144cda693ea7..e2b2508349d4 100644
--- a/sys/dev/raidframe/rf_freebsdkintf.c
+++ b/sys/dev/raidframe/rf_freebsdkintf.c
@@ -917,7 +917,7 @@ raidioctl(dev, cmd, data, flag, td)
case RAIDFRAME_INIT_LABELS:
MALLOC(ci_label, RF_ComponentLabel_t *,
sizeof(RF_ComponentLabel_t), M_RAIDFRAME,
- M_ZERO);
+ M_WAITOK | M_ZERO);
clabel = (RF_ComponentLabel_t *) data;
/*
we only want the serial number from
@@ -984,7 +984,7 @@ raidioctl(dev, cmd, data, flag, td)
case RAIDFRAME_ADD_HOT_SPARE:
MALLOC(hot_spare, RF_SingleComponent_t *,
sizeof(RF_SingleComponent_t), M_RAIDFRAME,
- M_ZERO);
+ M_WAITOK | M_ZERO);
sparePtr = (RF_SingleComponent_t *) data;
memcpy( hot_spare, sparePtr, sizeof(RF_SingleComponent_t));
retcode = rf_add_hot_spare(raidPtr, hot_spare);
@@ -997,7 +997,7 @@ raidioctl(dev, cmd, data, flag, td)
case RAIDFRAME_DELETE_COMPONENT:
MALLOC(component, RF_SingleComponent_t *,
sizeof(RF_SingleComponent_t), M_RAIDFRAME,
- M_ZERO);
+ M_WAITOK | M_ZERO);
componentPtr = (RF_SingleComponent_t *)data;
memcpy( component, componentPtr,
sizeof(RF_SingleComponent_t));
@@ -1008,7 +1008,7 @@ raidioctl(dev, cmd, data, flag, td)
case RAIDFRAME_INCORPORATE_HOT_SPARE:
MALLOC(component, RF_SingleComponent_t *,
sizeof(RF_SingleComponent_t), M_RAIDFRAME,
- M_ZERO);
+ M_WAITOK | M_ZERO);
componentPtr = (RF_SingleComponent_t *)data;
memcpy( component, componentPtr,
sizeof(RF_SingleComponent_t));
@@ -1020,7 +1020,7 @@ raidioctl(dev, cmd, data, flag, td)
MALLOC(component, RF_SingleComponent_t *,
sizeof(RF_SingleComponent_t), M_RAIDFRAME,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (raidPtr->Layout.map->faultsTolerated == 0) {
/* Can't do this on a RAID 0!! */
FREE(component, M_RAIDFRAME);
@@ -2894,7 +2894,7 @@ rf_set_autoconfig(raidPtr, new_value)
int row, column;
MALLOC(clabel, RF_ComponentLabel_t *, sizeof(RF_ComponentLabel_t),
- M_RAIDFRAME, M_ZERO);
+ M_RAIDFRAME, M_WAITOK | M_ZERO);
raidPtr->autoconfigure = new_value;
for(row=0; row<raidPtr->numRow; row++) {
@@ -2924,7 +2924,7 @@ rf_set_rootpartition(raidPtr, new_value)
int row, column;
MALLOC(clabel, RF_ComponentLabel_t *, sizeof(RF_ComponentLabel_t),
- M_RAIDFRAME, M_ZERO);
+ M_RAIDFRAME, M_WAITOK | M_ZERO);
raidPtr->root_partition = new_value;
for(row=0; row<raidPtr->numRow; row++) {
diff --git a/sys/dev/raidframe/rf_shutdown.c b/sys/dev/raidframe/rf_shutdown.c
index 9dc62558946e..7db93e9ce895 100644
--- a/sys/dev/raidframe/rf_shutdown.c
+++ b/sys/dev/raidframe/rf_shutdown.c
@@ -61,7 +61,7 @@ _rf_ShutdownCreate(
* and shutdown after RAIDframe internal allocation system.
*/
/* ent = (RF_ShutdownList_t *) malloc(sizeof(RF_ShutdownList_t),
- M_RAIDFRAME, 0); */
+ M_RAIDFRAME, M_WAITOK); */
ent = (RF_ShutdownList_t *) malloc(sizeof(RF_ShutdownList_t),
M_RAIDFRAME, M_NOWAIT);
if (ent == NULL)