- Properly check against B_DELWRI and B_NEEDSGIANT. This check was
incorrectly written and caused some !NEEDSGIANT buffers to be put in the NEEDSGIANT queue. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
03aec348ee
commit
6862688995
@ -1357,7 +1357,8 @@ brelse(struct buf *bp)
|
|||||||
TAILQ_INSERT_HEAD(&bufqueues[QUEUE_CLEAN], bp, b_freelist);
|
TAILQ_INSERT_HEAD(&bufqueues[QUEUE_CLEAN], bp, b_freelist);
|
||||||
/* remaining buffers */
|
/* remaining buffers */
|
||||||
} else {
|
} else {
|
||||||
if (bp->b_flags & (B_DELWRI|B_NEEDSGIANT))
|
if ((bp->b_flags & (B_DELWRI|B_NEEDSGIANT)) ==
|
||||||
|
(B_DELWRI|B_NEEDSGIANT))
|
||||||
bp->b_qindex = QUEUE_DIRTY_GIANT;
|
bp->b_qindex = QUEUE_DIRTY_GIANT;
|
||||||
if (bp->b_flags & B_DELWRI)
|
if (bp->b_flags & B_DELWRI)
|
||||||
bp->b_qindex = QUEUE_DIRTY;
|
bp->b_qindex = QUEUE_DIRTY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user