The branch main has been updated by scottl:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=35547df5c78653b2da030f920323c0357056099f

commit 35547df5c78653b2da030f920323c0357056099f
Author:     Scott Long <sco...@freebsd.org>
AuthorDate: 2021-08-10 22:36:38 +0000
Commit:     Scott Long <sco...@freebsd.org>
CommitDate: 2021-08-10 22:36:38 +0000

    Call wakeup() with the lock held to avoid missed wakeup races.
    
    Submitted by: luiz
    Sponsored by: Rubicon Communications, LLC ("Netgate")
---
 sys/dev/sdhci/sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c
index d075c2e05000..573e6949b57e 100644
--- a/sys/dev/sdhci/sdhci.c
+++ b/sys/dev/sdhci/sdhci.c
@@ -2078,8 +2078,8 @@ sdhci_generic_release_host(device_t brdev __unused, 
device_t reqdev)
        /* Deactivate led. */
        WR1(slot, SDHCI_HOST_CONTROL, slot->hostctrl &= ~SDHCI_CTRL_LED);
        slot->bus_busy--;
-       SDHCI_UNLOCK(slot);
        wakeup(slot);
+       SDHCI_UNLOCK(slot);
        return (0);
 }
 
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to