Page MenuHomeFreeBSD

D45721.id.diff
No OneTemporary

D45721.id.diff

diff --git a/sys/dev/virtio/p9fs/virtio_p9fs.c b/sys/dev/virtio/p9fs/virtio_p9fs.c
--- a/sys/dev/virtio/p9fs/virtio_p9fs.c
+++ b/sys/dev/virtio/p9fs/virtio_p9fs.c
@@ -331,12 +331,7 @@
/* Initialize the condition variable */
cv_init(&chan->submit_cv, "Conditional variable for submit queue" );
chan->max_nsegs = MAX_SUPPORTED_SGS;
- chan->vt9p_sglist = sglist_alloc(chan->max_nsegs, M_NOWAIT);
- if (chan->vt9p_sglist == NULL) {
- error = ENOMEM;
- P9_DEBUG(ERROR, "%s: Cannot allocate sglist\n", __func__);
- goto out;
- }
+ chan->vt9p_sglist = sglist_alloc(chan->max_nsegs, M_WAITOK);
/* Negotiate the features from the host */
virtio_set_feature_desc(dev, virtio_9p_feature_desc);

File Metadata

Mime Type
text/plain
Expires
Fri, Feb 27, 10:21 AM (5 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29026136
Default Alt Text
D45721.id.diff (699 B)

Event Timeline