diff options
author | Frans Kaashoek <[email protected]> | 2016-09-13 14:51:44 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2016-09-13 14:51:44 -0400 |
commit | e85cb90cbfb4b209066f0136387a2a1a98d890bf (patch) | |
tree | f03370c0019e0772a2fc71ecd4dd259a1753b44c | |
parent | 564a1cf0cb867f7738fcbe466aec02081a16d3ab (diff) | |
download | xv6-labs-e85cb90cbfb4b209066f0136387a2a1a98d890bf.tar.gz xv6-labs-e85cb90cbfb4b209066f0136387a2a1a98d890bf.tar.bz2 xv6-labs-e85cb90cbfb4b209066f0136387a2a1a98d890bf.zip |
one more BUSY
-rw-r--r-- | memide.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |