diff options
Diffstat (limited to 'ide.c')
-rw-r--r-- | ide.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -127,7 +127,7 @@ iderw(struct buf *b) { struct buf **pp; - if(!(b->flags & B_BUSY)) + if(!acquired_sleeplock(&b->sleeplock)) panic("iderw: buf not busy"); if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) panic("iderw: nothing to do"); |