make the book happy
This commit is contained in:
parent
792d83cad1
commit
2ae8392a5c
1 changed files with 2 additions and 2 deletions
4
ide.c
4
ide.c
|
@ -134,11 +134,11 @@ iderw(struct buf *b)
|
||||||
if(b->dev != 0 && !havedisk1)
|
if(b->dev != 0 && !havedisk1)
|
||||||
panic("iderw: ide disk 1 not present");
|
panic("iderw: ide disk 1 not present");
|
||||||
|
|
||||||
acquire(&idelock); //DOC: acquire-lock
|
acquire(&idelock); //DOC:acquire-lock
|
||||||
|
|
||||||
// Append b to idequeue.
|
// Append b to idequeue.
|
||||||
b->qnext = 0;
|
b->qnext = 0;
|
||||||
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC: insert-queue
|
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
|
||||||
;
|
;
|
||||||
*pp = b;
|
*pp = b;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue