Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153270296
D27607.id81236.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1002 B
Referenced Files
None
Subscribers
None
D27607.id81236.diff
View Options
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -882,7 +882,7 @@
* It is assumed that a reference to the object is already
* held by the callers.
*/
- obj = m->object;
+ obj = atomic_load_ptr(&m->object);
for (;;) {
if (vm_page_tryacquire(m, allocflags))
return (true);
@@ -4386,8 +4386,8 @@
if (locked && (allocflags & VM_ALLOC_NOCREAT) == 0)
vm_page_reference(m);
- if (_vm_page_busy_sleep(object, m, m->pindex, wmesg, allocflags,
- locked) && locked)
+ if (_vm_page_busy_sleep(object, m, pindex, wmesg, allocflags, locked) &&
+ locked)
VM_OBJECT_WLOCK(object);
if ((allocflags & VM_ALLOC_WAITFAIL) != 0)
return (false);
@@ -4780,7 +4780,7 @@
for (; i < count; i++) {
if (m != NULL) {
if (!vm_page_tryacquire(m, allocflags)) {
- if (vm_page_grab_sleep(object, m, pindex,
+ if (vm_page_grab_sleep(object, m, pindex + i,
"grbmaw", allocflags, true))
goto retrylookup;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 4:16 AM (4 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31887593
Default Alt Text
D27607.id81236.diff (1002 B)
Attached To
Mode
D27607: Fix some errors in the page busying code
Attached
Detach File
Event Timeline
Log In to Comment