Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4671176pxb; Tue, 2 Nov 2021 13:46:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTt+6fGbfUQKvamavqyed+ThcwHZn8hRHVbLJojpoN8Xenf4b3FEn7gWDn205DZct6Y5Y6 X-Received: by 2002:a17:907:72d4:: with SMTP id du20mr49784174ejc.324.1635885990429; Tue, 02 Nov 2021 13:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635885990; cv=none; d=google.com; s=arc-20160816; b=cRqV7Ne5+vnCwW8vPaFEVBxnxi+a8V9rpijdQfHqaxib9QYssJt4tzzjvOaMlCW4UI br0hJ9mU4EJltogcnHaOs1jbq9namVgAjG3wf9vUWLZg1lbgPyoBsJLLNI5xBJjh/F3E W5Q31TG8rBnWgxmG2HuEFjXRK/vkaRMHbg8JT67e+oAFgGq9eX4k65wHbfyr8Egxr99V PdRSRu0FX+Q0oRsLzV6C1t+c5rYYHxbGVesilWW/USmxHuS+Q52wmK14hIQ3d4dFZy4l gjZjlP1A+MnvYGv2cBFwiGJscsdgGBmBMwN+lCQBQ9Yz4V0zVS33OgiWawJWsvkYCp1U Uijg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=K/fqbzKS7d7M3R+dtjsJkzxyoCQ0qXkQ3ZMxTQROrjY=; b=zuLF+1u2srnjxSNdUpteG0DHYAvgU2TgCVLJdQ3Xq2RCxsSETjAGl8T3/uS6KNCm9x yNoca52WuBYFX5zWJPi1f1sx45w+4lXk+msSPjpGjAFXeHi/F7Nd7if7XZGwDoHF+Spk vmGhEQll0sa0OTtARbVb1AcH7JxKnX4jNXJd8kINZpSji6ttOYKUJUe8NS6OTdSMthTM QFePZRUWGZtS5d3F0EooqlAw6uikZT4HuirQLNn8pWuVoYd8DXfpcLBxpQircOvlvuJV i2Hq2Yx7/GNuPq7noaigOQf89svY9dIa1qmO/GK6lleBLnmO3EUWYFSQX+JyfxOMyL9N GPwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=0jOnt+d6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qb30si55543ejc.256.2021.11.02.13.46.06; Tue, 02 Nov 2021 13:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=0jOnt+d6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbhKBUpZ (ORCPT + 99 others); Tue, 2 Nov 2021 16:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbhKBUpY (ORCPT ); Tue, 2 Nov 2021 16:45:24 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FC0C061714 for ; Tue, 2 Nov 2021 13:42:49 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id g8so211819iob.10 for ; Tue, 02 Nov 2021 13:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=K/fqbzKS7d7M3R+dtjsJkzxyoCQ0qXkQ3ZMxTQROrjY=; b=0jOnt+d6rkjr0xYYasEo/Cma/n2fhTr9QJnbA/Dl6G6MGmPUSK5+5R2eLkwDRV1k7U sBzxiL42a6mqjwsXausPbWMjLIzjKxpjYwyJ5RwlsOcoPaT6X6p/UfKxYOtHtqyC6GU7 ugH3ygUqUOXgNZzKTne4c4ffQ42OzTL7p3xZ0IHMHerTc5oCKis+UAZPqMtiaMo6vnPK 0izcH3MXVr187f2PCLw4kyNhDOBm1INviqGtyNz1Afr1kzgkmepYbcT1LdDFCeR8OOnW 757T3j+hhV6QIPMDLWCjeCSOp/jTZ7Sc6M0jUC/lqnAic7kKpQEdsrWbcJTcFiRXj/3K BaHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=K/fqbzKS7d7M3R+dtjsJkzxyoCQ0qXkQ3ZMxTQROrjY=; b=7YGf/GG8EJo6wprKhwV+8jt5DMKDno/cJMUUyp+gLtNjnaWkirkTPVIRm1IS3h3eG3 kkH/Ur2aO/e3cY9VTq/sjB+WJbdDfHZ/NNe/3umOZrK0mZv2jG9YqH57NGa3vLQeMdwG BcLzfI6aPiMqrbp2uFK0A3gMoPNXokpsIfmYnFV8UA5Pno2MQinJktaxlK3fxWHPnnuF cXYe5W5P9bATK1cu6Z9InSgGEZ6wA85DxqSaDe7/ClmdEOkvOYv4sg3N+4y/h3y6VpBF qdRX9i3GvGu85KuXXE7EZV93D6AcYUG4YMYy7U2iKRvXB2lKYyXRV15fw7g6Lan18kmN Wnuw== X-Gm-Message-State: AOAM530oFyl+UOrqDVpGeLtqlCpX6YOe59QKjv30O7Oj/E5WKsyhJ+if lC2P1H+2cECPviBoX1C1G+N+MQ== X-Received: by 2002:a5d:8242:: with SMTP id n2mr27354163ioo.170.1635885768482; Tue, 02 Nov 2021 13:42:48 -0700 (PDT) Received: from [127.0.1.1] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id n4sm84359ili.10.2021.11.02.13.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 13:42:48 -0700 (PDT) From: Jens Axboe To: josef@toxicpanda.com, Yu Kuai Cc: yi.zhang@huawei.com, linux-block@vger.kernel.org, nbd@other.debian.org, linux-kernel@vger.kernel.org In-Reply-To: <20211101092538.1155842-1-yukuai3@huawei.com> References: <20211101092538.1155842-1-yukuai3@huawei.com> Subject: Re: [PATCH] nbd: error out if socket index doesn't match in nbd_handle_reply() Message-Id: <163588576788.463006.5186111103177394887.b4-ty@kernel.dk> Date: Tue, 02 Nov 2021 14:42:47 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Nov 2021 17:25:38 +0800, Yu Kuai wrote: > commit fcf3d633d8e1 ("nbd: check sock index in nbd_read_stat()") just > add error message when socket index doesn't match. Since the request > and reply must be transmitted over the same socket, it's ok to error > out in such situation. > > Applied, thanks! [1/1] nbd: error out if socket index doesn't match in nbd_handle_reply() commit: 494dbee341e7a02529ce776ee9a5e0b7733ca280 Best regards, -- Jens Axboe