Devolatile as needed.

Sponsored by:	The FreeBSD Foundation
MFC after:	13 days
This commit is contained in:
Konstantin Belousov 2014-06-09 09:10:31 +00:00
parent 338a205763
commit a19c5d3716
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267264

View file

@ -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;
}