summaryrefslogtreecommitdiff
path: root/sys/dev/ata/ata-raid.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-05-08 16:38:14 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-05-08 16:38:14 +0000
commit258dbbab697234e6bd221e73c885c09257867980 (patch)
tree028d26c4de16c8840405e8e633721e2a800de19d /sys/dev/ata/ata-raid.c
parentf8f4e476100ac97549026b93e70522ec3fe8f51f (diff)
Notes
Diffstat (limited to 'sys/dev/ata/ata-raid.c')
-rw-r--r--sys/dev/ata/ata-raid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c
index 403db8871e46..8e13c630b0ab 100644
--- a/sys/dev/ata/ata-raid.c
+++ b/sys/dev/ata/ata-raid.c
@@ -969,6 +969,7 @@ ar_rebuild(void *arg)
int disk, s, count = 0, error = 0;
caddr_t buffer;
+ mtx_lock(&Giant);
if ((rdp->flags & (AR_F_READY|AR_F_DEGRADED)) != (AR_F_READY|AR_F_DEGRADED))
kthread_exit(EEXIST);