Andreas Kling
30861daa93
Kernel: Simplify the File memory-mapping API
...
Before this change, we had File::mmap() which did all the work of
setting up a VMObject, and then creating a Region in the current
process's address space.
This patch simplifies the interface by removing the region part.
Files now only have to return a suitable VMObject from
vmobject_for_mmap(), and then sys$mmap() itself will take care of
actually mapping it into the address space.
This fixes an issue where we'd try to block on I/O (for inode metadata
lookup) while holding the address space spinlock. It also reduces time
spent holding the address space lock.
2022-08-24 14:57:51 +02:00
..
2022-08-23 20:29:50 +02:00
2022-08-24 14:57:51 +02:00
2022-08-20 17:20:43 +02:00
2022-08-24 14:57:51 +02:00
2022-08-24 14:57:51 +02:00
2022-08-20 17:20:43 +02:00
2022-08-24 14:57:51 +02:00
2022-08-22 17:56:03 +02:00
2022-08-20 17:20:43 +02:00
2022-08-20 17:20:43 +02:00
2022-08-20 17:20:43 +02:00
2022-08-24 14:57:51 +02:00
2022-08-22 12:46:32 +02:00
2022-08-20 17:20:43 +02:00
2022-08-24 14:57:51 +02:00
2022-08-20 17:20:43 +02:00
2022-08-20 17:20:43 +02:00
2022-08-22 12:46:32 +02:00
2022-08-20 18:32:50 +02:00
2022-08-14 01:03:23 +01:00
2022-08-24 14:57:51 +02:00
2022-08-20 17:20:43 +02:00
2022-08-21 16:02:24 +02:00
2022-08-21 16:02:24 +02:00
2022-08-08 02:33:25 +00:00
2022-07-12 23:11:35 +02:00
2022-08-20 18:32:50 +02:00
2022-07-21 16:39:22 +02:00
2022-08-20 17:15:52 +02:00
2022-08-24 14:57:51 +02:00
2022-08-23 11:48:50 +02:00
2022-07-12 23:11:35 +02:00
2022-07-12 23:11:35 +02:00
2022-08-19 20:26:47 -07:00
2022-08-24 14:57:51 +02:00
2022-07-12 23:11:35 +02:00
2022-07-12 23:11:35 +02:00
2022-08-24 14:57:51 +02:00
2022-08-24 14:57:51 +02:00
2022-08-22 17:56:03 +02:00
2022-08-22 17:56:03 +02:00
2022-08-20 17:20:43 +02:00
2022-08-20 17:20:43 +02:00
2022-08-22 12:46:32 +02:00
2022-08-24 14:57:51 +02:00
2022-07-12 23:11:35 +02:00
2022-08-19 20:26:47 -07:00
2022-08-20 17:20:43 +02:00
2022-08-22 17:56:03 +02:00
2022-08-24 14:57:51 +02:00
2022-08-24 14:57:51 +02:00
2022-08-20 17:20:43 +02:00
2022-08-22 12:46:32 +02:00
2022-08-20 17:20:43 +02:00
2022-08-20 17:20:43 +02:00
2022-07-12 23:11:35 +02:00
2022-07-12 23:11:35 +02:00
2022-08-20 17:20:43 +02:00
2022-08-20 17:20:43 +02:00