- Lock the buf before clearing flags.

This commit is contained in:
jeff 2003-03-13 07:07:16 +00:00
parent 7d8fd04a64
commit 883549405e
2 changed files with 2 additions and 2 deletions

View File

@ -168,9 +168,9 @@ extern u_char *fragtbl[];
long flags; \
int s; \
s = splbio(); \
BUF_LOCK(bp, LK_EXCLUSIVE, NULL); \
flags = (bp)->b_flags; \
(bp)->b_flags &= ~(B_DIRTY | B_LOCKED); \
BUF_LOCK(bp, LK_EXCLUSIVE, NULL); \
bremfree(bp); \
splx(s); \
if (flags & B_DIRTY) \

View File

@ -168,9 +168,9 @@ extern u_char *fragtbl[];
long flags; \
int s; \
s = splbio(); \
BUF_LOCK(bp, LK_EXCLUSIVE, NULL); \
flags = (bp)->b_flags; \
(bp)->b_flags &= ~(B_DIRTY | B_LOCKED); \
BUF_LOCK(bp, LK_EXCLUSIVE, NULL); \
bremfree(bp); \
splx(s); \
if (flags & B_DIRTY) \