From 258dbbab697234e6bd221e73c885c09257867980 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 8 May 2003 16:38:14 +0000 Subject: [PATCH] Acquire Giant at the start of the raid rebuild kthreads. Reported by: Masachika ISHIZUKA Reviewed by: sos Approved by: re (bmah) --- sys/dev/ata/ata-raid.c | 1 + 1 file changed, 1 insertion(+) 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);