one more BUSY

This commit is contained in:
Frans Kaashoek 2016-09-13 14:51:44 -04:00
parent 564a1cf0cb
commit e85cb90cbf

View file

@ -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)