diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2022-07-11 11:33:18 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2022-07-11 11:33:18 +0000 |
commit | 371644ee207978ece66cc0f32f5030f70c55abbc (patch) | |
tree | 807ea7b3eee6a10d82ffe9c8009f46db6f615b97 /sys/uvm/uvm_aobj.h | |
parent | 7403a93e9c8984cc093f08e047de83089bc50e54 (diff) |
Simplify the aiodone daemon which is only used for async writes.
- Remove unused support for asynchronous read, including error conditions
- Grab the proper lock for each page that has been written to swap. This
allows to enable an assertion in uvm_page_unbusy().
- Move the uvm_anon_release() call outside of uvm_page_unbusy() and
assert for the different anon cases.
ok beck@, kettenis@
Diffstat (limited to 'sys/uvm/uvm_aobj.h')
-rw-r--r-- | sys/uvm/uvm_aobj.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/uvm/uvm_aobj.h b/sys/uvm/uvm_aobj.h index c64546eff10..4a528517e27 100644 --- a/sys/uvm/uvm_aobj.h +++ b/sys/uvm/uvm_aobj.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_aobj.h,v 1.17 2020/10/21 09:08:14 mpi Exp $ */ +/* $OpenBSD: uvm_aobj.h,v 1.18 2022/07/11 11:33:17 mpi Exp $ */ /* $NetBSD: uvm_aobj.h,v 1.10 2000/01/11 06:57:49 chs Exp $ */ /* @@ -60,6 +60,7 @@ void uao_init(void); int uao_set_swslot(struct uvm_object *, int, int); +int uao_find_swslot(struct uvm_object *, int); int uao_dropswap(struct uvm_object *, int); int uao_swap_off(int, int); int uao_shrink(struct uvm_object *, int); |