Acquire Giant at the start of the raid rebuild kthreads.
Reported by: Masachika ISHIZUKA <ishizuka@ish.org> Reviewed by: sos Approved by: re (bmah)
This commit is contained in:
parent
f8f4e47610
commit
258dbbab69
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114843
@ -969,6 +969,7 @@ ar_rebuild(void *arg)
|
|||||||
int disk, s, count = 0, error = 0;
|
int disk, s, count = 0, error = 0;
|
||||||
caddr_t buffer;
|
caddr_t buffer;
|
||||||
|
|
||||||
|
mtx_lock(&Giant);
|
||||||
if ((rdp->flags & (AR_F_READY|AR_F_DEGRADED)) != (AR_F_READY|AR_F_DEGRADED))
|
if ((rdp->flags & (AR_F_READY|AR_F_DEGRADED)) != (AR_F_READY|AR_F_DEGRADED))
|
||||||
kthread_exit(EEXIST);
|
kthread_exit(EEXIST);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user