Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/139069/?format=api
http://patches.dpdk.org/api/patches/139069/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240403092448.1361820-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": "<20240403092448.1361820-2-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240403092448.1361820-2-maxime.coquelin@redhat.com", "date": "2024-04-03T09:24:44", "name": "[v2,1/5] vhost: rename polling mutex", "commit_ref": null, "pull_url": null, "state": "superseded", "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/20240403092448.1361820-2-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 31664, "url": "http://patches.dpdk.org/api/series/31664/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31664", "date": "2024-04-03T09:24:43", "name": "vhost: FD manager improvements", "version": 2, "mbox": "http://patches.dpdk.org/series/31664/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/139069/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/139069/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 BA35743DE5;\n\tWed, 3 Apr 2024 11:25:06 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B666F40648;\n\tWed, 3 Apr 2024 11:25:02 +0200 (CEST)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by mails.dpdk.org (Postfix) with ESMTP id C3E704067D\n for <dev@dpdk.org>; Wed, 3 Apr 2024 11:25:00 +0200 (CEST)", "from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])\n by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-592-iPBhSqDEMjG7uIZm_i8Org-1; Wed,\n 03 Apr 2024 05:24:58 -0400", "from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com\n [10.11.54.9])\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 B56D01C54036;\n Wed, 3 Apr 2024 09:24:57 +0000 (UTC)", "from max-p1.redhat.com (unknown [10.39.208.23])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 22B05492BC6;\n Wed, 3 Apr 2024 09:24:55 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1712136300;\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=RCxpbznhKTNkPWlfjh9YMQxkpwKSapMRMSeiGmBfibooWMSDLvgwvrXbY+g6rLz7IvguA4\n dYhGkqy5dn+8K5a7uZfGakiaL60qn3/z7wi/FZjHBFMof3cD8M9qAzPumJ5i6u6zTo/WbY\n ziq1yUuE8CDnDm+ZO1oSpTg33WLV/kQ=", "X-MC-Unique": "iPBhSqDEMjG7uIZm_i8Org-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 v2 1/5] vhost: rename polling mutex", "Date": "Wed, 3 Apr 2024 11:24:44 +0200", "Message-ID": "<20240403092448.1361820-2-maxime.coquelin@redhat.com>", "In-Reply-To": "<20240403092448.1361820-1-maxime.coquelin@redhat.com>", "References": "<20240403092448.1361820-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.11.54.9", "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": [ "v2", "1/5" ] }{ "id": 139069, "url": "