Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2234254/?format=api
{ "id": 2234254, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234254/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260507134448.168602-9-rajasimandalos@gmail.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/1.2/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260507134448.168602-9-rajasimandalos@gmail.com>", "list_archive_url": null, "date": "2026-05-07T13:44:48", "name": "[v2,8/8] smb: client: apply rasize on remount", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "cc4d30db37405ec6ef642f6c0aced4583fa5017f", "submitter": { "id": 91740, "url": "http://patchwork.ozlabs.org/api/1.2/people/91740/?format=api", "name": "RAJASI MANDAL", "email": "rajasimandalos@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260507134448.168602-9-rajasimandalos@gmail.com/mbox/", "series": [ { "id": 503184, "url": "http://patchwork.ozlabs.org/api/1.2/series/503184/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=503184", "date": "2026-05-07T13:44:40", "name": "Remount patches v2", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/503184/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2234254/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2234254/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11417-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=r0jZrXf8;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11417-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"r0jZrXf8\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.43", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4gBD5w53nDz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 07 May 2026 23:45:24 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 517ED3004611\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 7 May 2026 13:45:22 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B063626AF4;\n\tThu, 7 May 2026 13:45:20 +0000 (UTC)", "from mail-pj1-f43.google.com (mail-pj1-f43.google.com\n [209.85.216.43])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 792873B6BF0\n\tfor <linux-cifs@vger.kernel.org>; Thu, 7 May 2026 13:45:19 +0000 (UTC)", "by mail-pj1-f43.google.com with SMTP id\n 98e67ed59e1d1-366330b6751so162161a91.1\n for <linux-cifs@vger.kernel.org>;\n Thu, 07 May 2026 06:45:19 -0700 (PDT)", "from dev-vm-rm.hzz4ddxqtfeetjrh00qlbgyytb.rx.internal.cloudapp.net\n ([20.197.52.255])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-365b4c8a8e7sm8316609a91.13.2026.05.07.06.45.15\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 May 2026 06:45:17 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778161520; cv=none;\n b=gqCxaPBHrzbWVoV18L87VTRKOhQ0jnYpk9j9nZYBoYJmBQGgUgEEPYd1XPozbMGX4N4lIl+s2jly/1/E8YokIUUNFQ2dfWyXD65OxH6Q66f/REntLdspalufffjl3wkFt5kck34zRWlBjV8CBmSB7Xs0Dq5vL4VMMN6yHTK2phE=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778161520; c=relaxed/simple;\n\tbh=deYO0Iddvizn7AaGURnPiZyhZEfzMxgJvaGXHXzE8HE=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=QZUKnHqZHF01UnvHGz0S1eYfHZoywv7aQHQksNKmMGR7k5B5IP0yY41raI56bGiq1lmIbBeZVedPCgMwkpwk1uvHpwfbLOO4p2FNauzgmTrXzWntMhAAtcHpARxGv6TBzfKfRtzHXGaPEtTmZM7RMTpbhI8peN/amLdwUZa5/78=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=r0jZrXf8; arc=none smtp.client-ip=209.85.216.43", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1778161518; x=1778766318;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=mEmLgVqxwV0oh6SbcOjqZFmdb4K0oH7xBigomKlHENE=;\n b=r0jZrXf8549BrKNfjIAYzfj56pQ5FlgKB1HGSBVdoW8cMk9TM4kQU2C5L893s4UnRn\n CX7nuff7kAu/m49OB2MhbT/4J4Ypxq6Dgj9MqKREPKmuFd2/iDOcAI1azbqCj71zfZdL\n 4a70Ztor0Ac/juH5sjvgjZPxnsVnE8IzxqiGCesII3QRA1zzbliVfUzx4U3oOicZEOnq\n w+Eyg7LnoV4EUkQoChIyJNp/SW1ygVNcuTEud6jtk9qnRKsoVPuWg1aYXvDsrEJVqhhT\n p0LV9ANgua62nprjLXWcGo2+4UKNrGQOvlnKOEhbmeRCoB56Qu/ah81zzYZMAdFPtb6N\n 7rTg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778161518; x=1778766318;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=mEmLgVqxwV0oh6SbcOjqZFmdb4K0oH7xBigomKlHENE=;\n b=Ta65xjQTJhwg07tt8BZ91tMTC+3DODExW4glKFulk4KwS4Q8kiw2XF2rxPX/8tbgXo\n TMISZrIHQmABD1atoH2zOEV2U5GrW6RxZ8VhErHvQbmLRaCE1i75bI13dF73IPI5TcYL\n Xds8wcAeC6UuH1hc2fqZLUgTQ7zt8vu78I5fVgbnNY4Ik49Ekj0Axwrcj/xc/YUCua4N\n a05p7+x8KuRHKY/MNAh7wM7wq1XImpKlmjrQctpw5cxKryIlVfF7EV/fxg6YHrZMxMML\n 9RYZtxWj2DCE4iWp71AvJpVO7BWSzxI1HU7IJL/km2SzrzRewV1eFWl5PI2xm3yOyQEj\n elmQ==", "X-Gm-Message-State": "AOJu0YzRDUGpzp/LWMLrOAPXwO68kJSY1ksf/VY9MjpQHEdSzbCWHqTc\n\tf1mJ4IR7/Hp7pVFSenOqs/hmbIUHGYuOzLD3auh12qSw8Pd9cP8eIxqfna7N9A==", "X-Gm-Gg": "AeBDievTcQ09uGfJcxFqZYG+8mP7IErLTOCrLd8kCiOdq9m355SMmUVSoQkMjSl2wF4\n\tmw+SFVR4mn+wP0yGZpulOpEuDIpvwgOIdUqGxVLbXsq+7PUK/IhwA9E4y1ZW6eNlUZ5V2Y47+3N\n\tvG7AB6ge4WatunGtZrpumTeYYWQjNEsskz7N0YzmEoWwxV9Vx2BHcoGbkxSwAI5m4KFqEq4fcE4\n\t6ZUFCUTHFM8bljeRzAXhdMdNUxdCIUeBP/e1bQQux7iE14jVv3cYsXhx0l//O9bpmuTdwHtnssP\n\tdbP5H/vaSr7q4w+mpjJt60dtHA1+vIIeZUDOeSyrqX1U9PfjMA3ZFQCX0i9uTeA4c8hdziUTdXr\n\t/fu7XB3c9DZOZampNfd4oZt6/V0cJp+j7n5KdZ4fbjoCQL1tZVh6eYxG34HFyJrSDzANvpcAomL\n\tPpYYnkQSWQC2DuCTu0TIshE1YFZLkXX7tV854kHrdOUZ5WqB/1+UMnD2Ho4YQRoiQBZNpm4fpcK\n\t4eFMALX3SBNvud0y2D/Umabjv8mggCEddHytkWdaxrDHRS9eqaIp70=", "X-Received": "by 2002:a17:90b:278c:b0:35e:5929:d78d with SMTP id\n 98e67ed59e1d1-365ab9af874mr7982606a91.3.1778161518263;\n Thu, 07 May 2026 06:45:18 -0700 (PDT)", "From": "rajasimandalos@gmail.com", "To": "linux-cifs@vger.kernel.org", "Cc": "smfrench@gmail.com,\n\tpc@manguebit.org,\n\tsprasad@microsoft.com,\n\tbharathsm@microsoft.com,\n\tenzo@kernel.org", "Subject": "[PATCH v2 8/8] smb: client: apply rasize on remount", "Date": "Thu, 7 May 2026 13:44:48 +0000", "Message-ID": "<20260507134448.168602-9-rajasimandalos@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260507134448.168602-1-rajasimandalos@gmail.com>", "References": "<20260507134448.168602-1-rajasimandalos@gmail.com>", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "From: Rajasi Mandal <rajasimandal@microsoft.com>\n\nrasize is accepted during remount parsing but sb->s_bdi->ra_pages is\nonly set in cifs_read_super() at mount time. A remount with a new\nrasize value silently has no effect on the readahead window.\n\nUpdate ra_pages in smb3_reconfigure() after the context has been\nduplicated, using the same logic as cifs_read_super(): if rasize is\nset, use it directly; otherwise fall back to 2 * rsize.\n\nSigned-off-by: Rajasi Mandal <rajasimandal@microsoft.com>\n---\n fs/smb/client/fs_context.c | 11 +++++++++--\n 1 file changed, 9 insertions(+), 2 deletions(-)", "diff": "diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c\nindex 009b9480b5cc..b10fd05c0af0 100644\n--- a/fs/smb/client/fs_context.c\n+++ b/fs/smb/client/fs_context.c\n@@ -1356,7 +1356,7 @@ static int smb3_reconfigure(struct fs_context *fc)\n \tstruct dentry *root = fc->root;\n \tstruct cifs_sb_info *cifs_sb = CIFS_SB(root->d_sb);\n \tstruct cifs_ses *ses = cifs_sb_master_tcon(cifs_sb)->ses;\n-\tunsigned int rsize = ctx->rsize, wsize = ctx->wsize;\n+\tunsigned int rsize = ctx->rsize, wsize = ctx->wsize, rasize = ctx->rasize;\n \tchar *new_password = NULL, *new_password2 = NULL;\n \tbool need_recon = false;\n \tint rc;\n@@ -1472,13 +1472,20 @@ static int smb3_reconfigure(struct fs_context *fc)\n \tSTEAL_STRING(cifs_sb, ctx, nodename);\n \tSTEAL_STRING(cifs_sb, ctx, iocharset);\n \n-\t/* if rsize or wsize not passed in on remount, use previous values */\n+\t/* if rsize, wsize, or rasize not passed in on remount, use previous values */\n \tctx->rsize = rsize ? CIFS_ALIGN_RSIZE(fc, rsize) : cifs_sb->ctx->rsize;\n \tctx->wsize = wsize ? CIFS_ALIGN_WSIZE(fc, wsize) : cifs_sb->ctx->wsize;\n+\tctx->rasize = rasize ? rasize : cifs_sb->ctx->rasize;\n \n \tsmb3_cleanup_fs_context_contents(cifs_sb->ctx);\n \trc = smb3_fs_context_dup(cifs_sb->ctx, ctx);\n \tsmb3_update_mnt_flags(cifs_sb);\n+\n+\tif (cifs_sb->ctx->rasize)\n+\t\troot->d_sb->s_bdi->ra_pages = cifs_sb->ctx->rasize / PAGE_SIZE;\n+\telse\n+\t\troot->d_sb->s_bdi->ra_pages = 2 * (cifs_sb->ctx->rsize / PAGE_SIZE);\n+\n #ifdef CONFIG_CIFS_DFS_UPCALL\n \tif (!rc)\n \t\trc = dfs_cache_remount_fs(cifs_sb);\n", "prefixes": [ "v2", "8/8" ] }