Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151931535
D52112.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
696 B
Referenced Files
None
Subscribers
None
D52112.id.diff
View Options
diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c
--- a/sys/dev/nvme/nvme_ctrlr.c
+++ b/sys/dev/nvme/nvme_ctrlr.c
@@ -1308,7 +1308,7 @@
if (is_user_buffer) {
buf = uma_zalloc(pbuf_zone, M_WAITOK);
buf->b_iocmd = pt->is_read ? BIO_READ : BIO_WRITE;
- if (vmapbuf(buf, pt->buf, pt->len, 1) < 0) {
+ if (vmapbuf(buf, pt->buf, pt->len, 0) < 0) {
ret = EFAULT;
goto err;
}
@@ -1405,7 +1405,7 @@
buf = uma_zalloc(pbuf_zone, M_WAITOK);
buf->b_iocmd = npc->opcode & 1 ? BIO_WRITE : BIO_READ;
if (vmapbuf(buf, (void *)(uintptr_t)npc->addr,
- npc->data_len, 1) < 0) {
+ npc->data_len, 0) < 0) {
ret = EFAULT;
goto err;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 2:40 PM (8 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31353853
Default Alt Text
D52112.id.diff (696 B)
Attached To
Mode
D52112: nvme: Switch to using unmapped pages for passthrough data transfer
Attached
Detach File
Event Timeline
Log In to Comment