Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2014 09:10:32 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267264 - head/sys/kern
Message-ID:  <201406090910.s599AW6A092760@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jun  9 09:10:31 2014
New Revision: 267264
URL: http://svnweb.freebsd.org/changeset/base/267264

Log:
  Devolatile as needed.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	13 days

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Mon Jun  9 07:21:42 2014	(r267263)
+++ head/sys/kern/vfs_bio.c	Mon Jun  9 09:10:31 2014	(r267264)
@@ -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, in
 			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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406090910.s599AW6A092760>