diff options
author | sos <sos@FreeBSD.org> | 2004-10-10 13:24:39 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2004-10-10 13:24:39 +0000 |
commit | 3d81c2063839806a75629729f51a4db121c5da97 (patch) | |
tree | 6e8fca212f29501e4116d479ac7dfe924dfff673 /sys/dev/ata | |
parent | 0dda31b4f9124e935eb487053875a46a0736fdcb (diff) | |
download | FreeBSD-src-3d81c2063839806a75629729f51a4db121c5da97.zip FreeBSD-src-3d81c2063839806a75629729f51a4db121c5da97.tar.gz |
Dont sleep with lock held.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 982fdae..58e954f 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -347,8 +347,8 @@ ata_suspend(device_t dev) ch->state = ATA_ACTIVE; gotit = 1; } - tsleep(&gotit, PRIBIO, "atasusp", hz/10); mtx_unlock(&ch->state_mtx); + tsleep(&gotit, PRIBIO, "atasusp", hz/10); } ch->locking(ch, ATA_LF_UNLOCK); return 0; |