Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166941095
D50909.id157184.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
566 B
Referenced Files
None
Subscribers
None
D50909.id157184.diff
View Options
diff --git a/sys/dev/virtio/block/virtio_blk.c b/sys/dev/virtio/block/virtio_blk.c
--- a/sys/dev/virtio/block/virtio_blk.c
+++ b/sys/dev/virtio/block/virtio_blk.c
@@ -699,10 +699,14 @@
{
device_t dev;
struct vq_alloc_info vq_info;
+ int indir_segs;
dev = sc->vtblk_dev;
- VQ_ALLOC_INFO_INIT(&vq_info, sc->vtblk_max_nsegs,
+ indir_segs = 0;
+ if (sc->vtblk_flags & VTBLK_FLAG_INDIRECT)
+ indir_segs = sc->vtblk_max_nsegs;
+ VQ_ALLOC_INFO_INIT(&vq_info, indir_segs,
vtblk_vq_intr, sc, &sc->vtblk_vq,
"%s request", device_get_nameunit(dev));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 10:43 PM (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36911258
Default Alt Text
D50909.id157184.diff (566 B)
Attached To
Mode
D50909: virtio_blk: Limit use of indirect descriptors
Attached
Detach File
Event Timeline
Log In to Comment