diff options
| author | oster <oster@NetBSD.org> | 2002-07-13 17:47:44 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2002-07-13 17:47:44 +0000 |
| commit | 8fcfe433d89d4d37af16350ce2b4b103b21284ec (patch) | |
| tree | 1769278ada2ad2ea040757bbf64adf2d6015b09a /sys/dev/raidframe | |
| parent | 38f0cae9e219fc776ba60a8510ff03213eea950f (diff) | |
No need to unlock and then immediately relock a mutex.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index 2e328732050..f5a9a7f060b 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.123 2002/07/13 17:24:41 oster Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.124 2002/07/13 17:47:44 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -114,7 +114,7 @@ ***********************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.123 2002/07/13 17:24:41 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.124 2002/07/13 17:47:44 oster Exp $"); #include <sys/param.h> #include <sys/errno.h> @@ -1658,10 +1658,8 @@ raidstart(raidPtr) RF_NORMAL_COMPONENT_UPDATE); raidPtr->numNewFailures--; } - RF_UNLOCK_MUTEX(raidPtr->mutex); /* Check to see if we're at the limit... */ - RF_LOCK_MUTEX(raidPtr->mutex); while (raidPtr->openings > 0) { RF_UNLOCK_MUTEX(raidPtr->mutex); |
