one more BUSY
This commit is contained in:
parent
564a1cf0cb
commit
e85cb90cbf
4
memide.c
4
memide.c
@ -39,8 +39,8 @@ iderw(struct buf *b)
|
|||||||
{
|
{
|
||||||
uchar *p;
|
uchar *p;
|
||||||
|
|
||||||
if(!(b->flags & B_BUSY))
|
if(!holdingsleep(&b->lock))
|
||||||
panic("iderw: buf not busy");
|
panic("iderw: buf not locked");
|
||||||
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
|
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
|
||||||
panic("iderw: nothing to do");
|
panic("iderw: nothing to do");
|
||||||
if(b->dev != 1)
|
if(b->dev != 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user