Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/139210/?format=api
http://patches.dpdk.org/api/patches/139210/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240409114845.1336403-2-maxime.coquelin@redhat.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20240409114845.1336403-2-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240409114845.1336403-2-maxime.coquelin@redhat.com", "date": "2024-04-09T11:48:41", "name": "[v3,1/5] vhost: rename polling mutex", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "98496d7ebed4dee6fe3f74df4bea2b39ed44eef7", "submitter": { "id": 512, "url": "http://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240409114845.1336403-2-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 31711, "url": "http://patches.dpdk.org/api/series/31711/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31711", "date": "2024-04-09T11:48:40", "name": "vhost: FD manager improvements", "version": 3, "mbox": "http://patches.dpdk.org/series/31711/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/139210/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/139210/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6B1C643E29;\n\tTue, 9 Apr 2024 13:49:03 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 56F81402EC;\n\tTue, 9 Apr 2024 13:48:59 +0200 (CEST)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id D6EDF402D4\n for <dev@dpdk.org>; Tue, 9 Apr 2024 13:48:57 +0200 (CEST)", "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-625-stz3KYjoNMGIXtN5X3mPSg-1; Tue, 09 Apr 2024 07:48:55 -0400", "from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com\n [10.11.54.3])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CF642802CB4;\n Tue, 9 Apr 2024 11:48:54 +0000 (UTC)", "from max-p1.redhat.com (unknown [10.39.208.27])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 746D01121313;\n Tue, 9 Apr 2024 11:48:53 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1712663337;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=6gG2Kj85EPCpPK/EZU7Fo5ti520Wvxifl/1BBlxNHN4=;\n b=S0r23TjepXWK0p8eLLlFHTZwrrbpO+SSooOLXLI4MsqSAoB2nxH3dtqkmsGG+EkKIfXI37\n BMFE4ncZl/clwc8olCRpkujotw30OLTqOo80PW3rwuU5UoMTpjuiwnpqtQFrUQZluxO1GU\n dsKVmxhdEwFH+zYbtKz+xY+covL+ArM=", "X-MC-Unique": "stz3KYjoNMGIXtN5X3mPSg-1", "From": "Maxime Coquelin <maxime.coquelin@redhat.com>", "To": "dev@dpdk.org,\n\tdavid.marchand@redhat.com,\n\tchenbox@nvidia.com", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>", "Subject": "[PATCH v3 1/5] vhost: rename polling mutex", "Date": "Tue, 9 Apr 2024 13:48:41 +0200", "Message-ID": "<20240409114845.1336403-2-maxime.coquelin@redhat.com>", "In-Reply-To": "<20240409114845.1336403-1-maxime.coquelin@redhat.com>", "References": "<20240409114845.1336403-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.11.54.3", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "This trivial patch fixes a typo in fd's manager polling\nmutex name.\n\nReviewed-by: David Marchand <david.marchand@redhat.com>\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n lib/vhost/fd_man.c | 8 ++++----\n lib/vhost/fd_man.h | 2 +-\n 2 files changed, 5 insertions(+), 5 deletions(-)", "diff": "diff --git a/lib/vhost/fd_man.c b/lib/vhost/fd_man.c\nindex 481e6b900a..67ee1589e1 100644\n--- a/lib/vhost/fd_man.c\n+++ b/lib/vhost/fd_man.c\n@@ -125,9 +125,9 @@ fdset_add(struct fdset *pfdset, int fd, fd_cb rcb, fd_cb wcb, void *dat)\n \tpthread_mutex_lock(&pfdset->fd_mutex);\n \ti = pfdset->num < MAX_FDS ? pfdset->num++ : -1;\n \tif (i == -1) {\n-\t\tpthread_mutex_lock(&pfdset->fd_pooling_mutex);\n+\t\tpthread_mutex_lock(&pfdset->fd_polling_mutex);\n \t\tfdset_shrink_nolock(pfdset);\n-\t\tpthread_mutex_unlock(&pfdset->fd_pooling_mutex);\n+\t\tpthread_mutex_unlock(&pfdset->fd_polling_mutex);\n \t\ti = pfdset->num < MAX_FDS ? pfdset->num++ : -1;\n \t\tif (i == -1) {\n \t\t\tpthread_mutex_unlock(&pfdset->fd_mutex);\n@@ -244,9 +244,9 @@ fdset_event_dispatch(void *arg)\n \t\tnumfds = pfdset->num;\n \t\tpthread_mutex_unlock(&pfdset->fd_mutex);\n \n-\t\tpthread_mutex_lock(&pfdset->fd_pooling_mutex);\n+\t\tpthread_mutex_lock(&pfdset->fd_polling_mutex);\n \t\tval = poll(pfdset->rwfds, numfds, 1000 /* millisecs */);\n-\t\tpthread_mutex_unlock(&pfdset->fd_pooling_mutex);\n+\t\tpthread_mutex_unlock(&pfdset->fd_polling_mutex);\n \t\tif (val < 0)\n \t\t\tcontinue;\n \ndiff --git a/lib/vhost/fd_man.h b/lib/vhost/fd_man.h\nindex 7816fb11ac..4e00f94758 100644\n--- a/lib/vhost/fd_man.h\n+++ b/lib/vhost/fd_man.h\n@@ -24,7 +24,7 @@ struct fdset {\n \tstruct pollfd rwfds[MAX_FDS];\n \tstruct fdentry fd[MAX_FDS];\n \tpthread_mutex_t fd_mutex;\n-\tpthread_mutex_t fd_pooling_mutex;\n+\tpthread_mutex_t fd_polling_mutex;\n \tint num;\t/* current fd number of this fdset */\n \n \tunion pipefds {\n", "prefixes": [ "v3", "1/5" ] }{ "id": 139210, "url": "