From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B382137BE7F for ; Mon, 22 Jun 2026 22:28:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782167300; cv=none; b=mNli0FHSFo114RZ6B1D4Vilo1oDWQL1TcgtGyXG2Yk4BixlZJwFTcPTosRrCs0JZbJSO8tEiIgq24QZeq59pdljVIHHg1qruURjKKZ2/1TUKRDcwztp3uEjHf8nnMyrrRaRftuD+c+qd7muVOpWjQ3lPhlg73ilH0E0mBGxEYUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782167300; c=relaxed/simple; bh=gry1uQqAa0tANDVkHjkuPNbr5jKjvV245FrhWBFwAuQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KMfu7SxM2zbOUwrAGJdzWQhXJ5bIBmrfKXMM/l4fNrAm0r6UVtlm+VOZGYopHQyg5O/NaMxAGcnWhxJsQAKZtJSynxf5/6DZ6JA6WQJThNKGxta8HaIVIHNfwOXC2aEe6OJvR/c/pUOkVUxdkKEA5OzABdln39Cri+saWZ4vby0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--tavip.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Jlei4Ipy; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--tavip.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Jlei4Ipy" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-8428384f31fso3445925b3a.3 for ; Mon, 22 Jun 2026 15:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782167298; x=1782772098; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=AEqk/nI9MwbHFJChA3EKe7XfZWAt05hBZjjNOpuqeXY=; b=Jlei4IpyQ3goNhDa9zVqdgLsY1t+VD5eYju0ZpbPO8QuSAPeurqxXDRSY7iV+6IIhQ sdmAeeMfAc1tsz1nq43TlRUXhcYiRH7HOKiiQG3oI5upK9DsmVGsalIxWhymw/qwZFKy Q1rBTeOmuhHuuA5dkg2nSH2vA1NzAfCT4x7hESSPUQhpFhQlHJIOlDBqne0RTfCKyVff h/DRTFgs3YSeU/59ub8RylBNeotHT7vdVBnIcqwsvvFVALjcESoiCFarcp3igRgwzPcR vZv3Kt6rimbn3ZOM4xJ1sPdETWRCJ3ifqEeN4bts96xQ621GHB2k1OexF/gbpHJHtxGZ GoJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782167298; x=1782772098; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AEqk/nI9MwbHFJChA3EKe7XfZWAt05hBZjjNOpuqeXY=; b=aIkywyzEhZNNa2jDySA7vWFb04zkWtmc1fz+ceYJdWLS4ceOUKkcoRyDNcg0YWbvq4 XGPiZs56U/BYHuge09GYi4JY5IIpRWuF/6nxhKHX6/GaTxzJh6ggpbnDZOEpMv1/DJ5C TCzpjbzRJA8tMpJFjSIWaAmBILOb45YMICNsmFH0qckDO/T10oh2OeGOXHg0nUjz++Qo L/UuIJEpA9UeKZFepC5BtZ5cxkIYGW1pykBHp5PqQsItFQrnPsX8jLWSQNjtl0afdNbY o0LPfB9XGu3du8yntyUQbiEbKBBFmKAEPh6S6dkOSxPUewDeqCFF9RaX3/yx/6hhfIgV 0d9g== X-Forwarded-Encrypted: i=1; AFNElJ8QYEmjqD5BBWPl2ldhWnFt63uFMuf2AxVIQ1y5G3IKljY8pAdz/ng2MUI7GSq6s3pxFxA8FYQHee1epA==@vger.kernel.org X-Gm-Message-State: AOJu0YyBmPe15xC3lnSndl9if0mTwqakhU3yhIKbNaCnP70QIM5DDjNX bOnSirWksdSAbrUhiDNV5vKEVHBqsbahMOc3ki2v5WKdMH/iy90uNYzjTNPnMea3ziwIqdmjoRE iJw== X-Received: from pfn22.prod.google.com ([2002:a05:6a00:a216:b0:842:3963:226a]) (user=tavip job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:806:b0:845:41e4:3faa with SMTP id d2e1a72fcca58-845508bb8a9mr17027325b3a.31.1782167297664; Mon, 22 Jun 2026 15:28:17 -0700 (PDT) Date: Mon, 22 Jun 2026 22:27:56 +0000 In-Reply-To: <20260622222757.2130402-1-tavip@google.com> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260622222757.2130402-1-tavip@google.com> X-Mailer: git-send-email 2.55.0.rc0.799.gd6f94ed593-goog Message-ID: <20260622222757.2130402-2-tavip@google.com> Subject: [PATCH net v3 1/2] iov_iter: export iov_iter_restore From: Octavian Purdila To: netdev@vger.kernel.org Cc: Alexander Viro , Andrew Morton , Arseniy Krasnov , "David S. Miller" , Eric Dumazet , "=?UTF-8?q?Eugenio=20P=C3=A9rez?=" , Jakub Kicinski , Jason Wang , kvm@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "Michael S. Tsirkin" , Paolo Abeni , Simon Horman , Stefan Hajnoczi , Stefano Garzarella , virtualization@lists.linux.dev, Xuan Zhuo , Jens Axboe , Octavian Purdila Content-Type: text/plain; charset="UTF-8" Export iov_iter_restore so that it can be used by modules. This is needed by the virtio vsock transport (which can be built as a module) to restore the msg_iter state when transmission fails. Acked-by: Stefano Garzarella Signed-off-by: Octavian Purdila --- lib/iov_iter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index 273919b161617..f5df63961fb24 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -1491,6 +1491,7 @@ void iov_iter_restore(struct iov_iter *i, struct iov_iter_state *state) i->__iov -= state->nr_segs - i->nr_segs; i->nr_segs = state->nr_segs; } +EXPORT_SYMBOL_GPL(iov_iter_restore); /* * Extract a list of contiguous pages from an ITER_FOLIOQ iterator. This does -- 2.55.0.rc0.799.gd6f94ed593-goog