make the book happy

This commit is contained in:
Robert Morris 2012-08-28 14:41:08 -04:00
parent 792d83cad1
commit 2ae8392a5c
1 changed files with 2 additions and 2 deletions

4
ide.c
View File

@ -134,11 +134,11 @@ iderw(struct buf *b)
if(b->dev != 0 && !havedisk1)
panic("iderw: ide disk 1 not present");
acquire(&idelock); //DOC: acquire-lock
acquire(&idelock); //DOC:acquire-lock
// Append b to idequeue.
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;