- Lock the buf before clearing flags.
This commit is contained in:
parent
c033bdc013
commit
f5f0dee483
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112180
@ -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) \
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user