aac(4): Add a missing unlock.
authorSascha Wildner <saw@online.de>
Tue, 20 Nov 2012 05:23:49 +0000 (06:23 +0100)
committerSascha Wildner <saw@online.de>
Tue, 20 Nov 2012 05:23:49 +0000 (06:23 +0100)
sys/dev/raid/aac/aac.c

index 34b871b..b833dd3 100644 (file)
@@ -363,8 +363,10 @@ aac_daemon(void *arg)
        lockmgr(&sc->aac_io_lock, LK_EXCLUSIVE);
 
        if (callout_pending(&sc->aac_daemontime) ||
-           callout_active(&sc->aac_daemontime) == 0)
+           callout_active(&sc->aac_daemontime) == 0) {
+               lockmgr(&sc->aac_io_lock, LK_RELEASE);
                return;
+       }
        getmicrotime(&tv);
        aac_alloc_sync_fib(sc, &fib);
        *(uint32_t *)fib->data = tv.tv_sec;