Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147365723
D27409.id80111.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
971 B
Referenced Files
None
Subscribers
None
D27409.id80111.diff
View Options
Index: head/sys/kern/vfs_aio.c
===================================================================
--- head/sys/kern/vfs_aio.c
+++ head/sys/kern/vfs_aio.c
@@ -2339,24 +2339,23 @@
aio_biowakeup(struct bio *bp)
{
struct kaiocb *job = (struct kaiocb *)bp->bio_caller1;
- struct proc *userp;
struct kaioinfo *ki;
size_t nbytes;
int error, nblks;
/* Release mapping into kernel space. */
- userp = job->userproc;
- ki = userp->p_aioinfo;
- vm_page_unhold_pages(job->pages, job->npages);
if (job->pbuf != NULL) {
pmap_qremove((vm_offset_t)job->pbuf->b_data, job->npages);
+ vm_page_unhold_pages(job->pages, job->npages);
uma_zfree(pbuf_zone, job->pbuf);
job->pbuf = NULL;
atomic_subtract_int(&num_buf_aio, 1);
+ ki = job->userproc->p_aioinfo;
AIO_LOCK(ki);
ki->kaio_buffer_count--;
AIO_UNLOCK(ki);
} else {
+ vm_page_unhold_pages(job->pages, job->npages);
free(job->pages, M_TEMP);
atomic_subtract_int(&num_unmapped_aio, 1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 9:01 AM (12 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29533962
Default Alt Text
D27409.id80111.diff (971 B)
Attached To
Mode
D27409: bio aio: Destroy ephemeral mapping before unwiring page.
Attached
Detach File
Event Timeline
Log In to Comment