Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2972892imu; Mon, 19 Nov 2018 08:49:47 -0800 (PST) X-Google-Smtp-Source: AJdET5eSaebthaHyyLTaN7dG928EFbs1WNyp/Bc12o3dCpd8lhOMNT+kigkByZ+QbQFVzY+jJ49t X-Received: by 2002:a62:6181:: with SMTP id v123-v6mr24139340pfb.117.1542646187260; Mon, 19 Nov 2018 08:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542646187; cv=none; d=google.com; s=arc-20160816; b=xb74HdDMpmQOx+m1WcqfCO5tHwV89W1UV6uY/f2qx9mxasCYloKeRdrvbE2DjuW8tN 4zOI55ks5qvieeVYPCSz6EAaHX0y+K6SOE59ugLqlPqxzRxG+mAysdlH5YAamHaD/peS UQ0771+XUW0WJEfjzbQi4Cw0fxGtYAD/fYLFUtoL0V0AXIuHMaMKlp5ZVwEvGHeTfoy2 vJnxWhIkhQp1VZAOP+24zVetufO9+fvQGW+PyyOPHc/mQxWq0oOIQXP1kxTxMHMEyAt2 1Ws7b8k1jpX2mMrrNphGZQnQn0DPEQRWquMNTmmEk0CY5umSvXvTiqBT/7DelV/ze1Pk bVsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2ZtjAcHFxYrp7QBeAHBL6gHsaVVjO0LfNMekiejDYsA=; b=u8XTmExpIqPfO9h7OFAOyCnZ+k6Ht0S5MbOai2kOdn7Ru5llS91teDMGXNoHf/RDUa /iMhnpzPvHJIZKjRM25USHOto2MJX+rW3ifB1FI8rZELOQaUjjDprf9bDrJkMcmsJDoc 05KTEoUg9GHSaiKwJbziL7nTu5f6EU319J9ahJZPGwGJX3meHF6Bm3+6nOK9dbNVBPsJ ILKfpTHCYQGsus3/FH+YjPWqdMRAs60dOmfM15TUj6OuE8o3fNbROqPUmR0620Jn12mK PFiZRkTxhMzEw9Y9OKE1GSxGB51qzQ6qivyVGSzwmReJV4mKKh+fZ03HfXGUKvI/Zqwl DdBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ClqP29Bm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20si10045031plp.415.2018.11.19.08.49.32; Mon, 19 Nov 2018 08:49:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ClqP29Bm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389517AbeKTDM5 (ORCPT + 99 others); Mon, 19 Nov 2018 22:12:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:49452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387988AbeKTDM4 (ORCPT ); Mon, 19 Nov 2018 22:12:56 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9FF31208E3; Mon, 19 Nov 2018 16:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542646124; bh=I1Q3LYt2tzSfYH5EAXbrvETHbC3mSbY/Q/0Tf3gDFZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ClqP29BmKviGGVOQW69MuEHiXBGPjwsEMeSXZ/Doib4Iy/3pO1ztxcVVOXl01IkuG QJGlTYIGJO+/Qt529lRNp/VgoqDZWDWYu3FnR5iflElPlociYa+dO2j/hIMnIzybWE zcQc13v3MwB5N71xStm9q2PudRmWq0Nc9OtA9uHw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilya Dryomov Subject: [PATCH 4.14 046/124] libceph: bump CEPH_MSG_MAX_DATA_LEN Date: Mon, 19 Nov 2018 17:28:20 +0100 Message-Id: <20181119162622.592545744@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162612.951907286@linuxfoundation.org> References: <20181119162612.951907286@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ilya Dryomov commit 94e6992bb560be8bffb47f287194adf070b57695 upstream. If the read is large enough, we end up spinning in the messenger: libceph: osd0 192.168.122.1:6801 io error libceph: osd0 192.168.122.1:6801 io error libceph: osd0 192.168.122.1:6801 io error This is a receive side limit, so only reads were affected. Cc: stable@vger.kernel.org Signed-off-by: Ilya Dryomov Signed-off-by: Greg Kroah-Hartman --- include/linux/ceph/libceph.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h @@ -81,7 +81,13 @@ struct ceph_options { #define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024) #define CEPH_MSG_MAX_MIDDLE_LEN (16*1024*1024) -#define CEPH_MSG_MAX_DATA_LEN (16*1024*1024) + +/* + * Handle the largest possible rbd object in one message. + * There is no limit on the size of cephfs objects, but it has to obey + * rsize and wsize mount options anyway. + */ +#define CEPH_MSG_MAX_DATA_LEN (32*1024*1024) #define CEPH_AUTH_NAME_DEFAULT "guest"