mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
Devolatile as needed.
Sponsored by: The FreeBSD Foundation MFC after: 13 days
This commit is contained in:
parent
338a205763
commit
a19c5d3716
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267264
|
@ -476,7 +476,7 @@ bufspacewakeup(void)
|
|||
break;
|
||||
}
|
||||
if (need_wakeup)
|
||||
wakeup((void *)&needsbuffer);
|
||||
wakeup(__DEVOLATILE(void *, &needsbuffer));
|
||||
rw_runlock(&nblock);
|
||||
}
|
||||
|
||||
|
@ -559,7 +559,7 @@ bufcountadd(struct buf *bp)
|
|||
break;
|
||||
}
|
||||
if (need_wakeup)
|
||||
wakeup((void *)&needsbuffer);
|
||||
wakeup(__DEVOLATILE(void *, &needsbuffer));
|
||||
rw_runlock(&nblock);
|
||||
}
|
||||
|
||||
|
@ -2142,8 +2142,8 @@ getnewbuf_bufd_help(struct vnode *vp, int gbflags, int slpflag, int slptimeo,
|
|||
if ((needsbuffer & flags) == 0)
|
||||
break;
|
||||
}
|
||||
error = rw_sleep((void *)&needsbuffer, &nblock, (PRIBIO + 4) |
|
||||
slpflag, waitmsg, slptimeo);
|
||||
error = rw_sleep(__DEVOLATILE(void *, &needsbuffer), &nblock,
|
||||
(PRIBIO + 4) | slpflag, waitmsg, slptimeo);
|
||||
if (error != 0)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue