summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2016-09-13 14:51:44 -0400
committerFrans Kaashoek <[email protected]>2016-09-13 14:51:44 -0400
commite85cb90cbfb4b209066f0136387a2a1a98d890bf (patch)
treef03370c0019e0772a2fc71ecd4dd259a1753b44c
parent564a1cf0cb867f7738fcbe466aec02081a16d3ab (diff)
downloadxv6-labs-e85cb90cbfb4b209066f0136387a2a1a98d890bf.tar.gz
xv6-labs-e85cb90cbfb4b209066f0136387a2a1a98d890bf.tar.bz2
xv6-labs-e85cb90cbfb4b209066f0136387a2a1a98d890bf.zip
one more BUSY
-rw-r--r--memide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memide.c b/memide.c
index 38be9a4..63f0a24 100644
--- a/memide.c
+++ b/memide.c
@@ -39,8 +39,8 @@ iderw(struct buf *b)
{
uchar *p;
- if(!(b->flags & B_BUSY))
- panic("iderw: buf not busy");
+ if(!holdingsleep(&b->lock))
+ panic("iderw: buf not locked");
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
panic("iderw: nothing to do");
if(b->dev != 1)