FreeBSD Bugzilla – Attachment 166295 Details for
Bug 204764
Filesystem deadlock, process in vodead state
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Debugging patch
1.patch (text/plain), 943 bytes, created by
Konstantin Belousov
on 2016-01-30 10:42:55 UTC
(
hide
)
Description:
Debugging patch
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2016-01-30 10:42:55 UTC
Size:
943 bytes
patch
obsolete
>diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c >index bc0e4c0..776c064 100644 >--- a/sys/vm/vm_object.c >+++ b/sys/vm/vm_object.c >@@ -264,6 +264,7 @@ _vm_object_allocate(objtype_t type, vm_pindex_t size, vm_object_t object) > #if VM_NRESERVLEVEL > 0 > LIST_INIT(&object->rvq); > #endif >+bzero(&object->dbg, sizeof(object->dbg)); > } > > /* >diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h >index ca2d73a..5b2a87f 100644 >--- a/sys/vm/vm_object.h >+++ b/sys/vm/vm_object.h >@@ -97,6 +97,7 @@ > * > */ > >+#include <sys/stack.h> > struct vm_object { > struct rwlock lock; > TAILQ_ENTRY(vm_object) object_list; /* list of all objects */ >@@ -174,6 +175,7 @@ struct vm_object { > } un_pager; > struct ucred *cred; > vm_ooffset_t charge; >+struct stack dbg; > }; > > /* >@@ -255,6 +257,7 @@ static __inline void > vm_object_set_flag(vm_object_t object, u_short bits) > { > >+if ((bits & OBJ_DEAD) != 0) stack_save(&object->dbg); > object->flags |= bits; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204764
:
163453
|
166244
| 166295 |
173037