Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3064716imu; Mon, 19 Nov 2018 10:05:55 -0800 (PST) X-Google-Smtp-Source: AJdET5cAVn2GKZ8UIj24bvcySoH637sIeaLxwhJomm4NwsH7e7CGsvb21For2v/2re243kRcEEAH X-Received: by 2002:a62:4bc2:: with SMTP id d63-v6mr25141308pfj.170.1542650755428; Mon, 19 Nov 2018 10:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542650755; cv=none; d=google.com; s=arc-20160816; b=HyjWVyE3OcE6hUJ3h3nExyuxcMw+fgN0QsZTHZrAid7WAQZlBKCEc6eGduDF+zNQRM XxVBqfO+xj3lstsiK0G9loN5bH84MdpYT0ACJQOM8S3K19sAVRCv3iP/jiR/rc5wWIpF hpm087zjnPtzlBDuc6Kik7KZ44qzonowg9hE00aypT6/HdTYiYEbQxn9qWQhOsCJPzwS 0PNWv6ATd/hO0hw7cderluA31T5ZQ50tp8t8MTwHG8eGkyDNc2UXyqUlLYclO3LFirNI 4+siTBI6sN3J8vV4F6U3CWIhpLyldBxFJ3YuH6n67XeCASCOt/YGExCkkZ2eEQRbPlfF ztwA== 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=u2W6exsQpqm9jsh3YERtEploZ1XovHeuWSbXstMCcq4=; b=wZ5cpnmKKLWGhdejtw61R3hqueds1ZpVX5PwDs0QZAx7RGlFFDOuGz16rTI2CX0DB9 Prk7Kju9M6QhNLYBcF/eVhcZ8MA1OdHDjgue++T4STfIw5MfuSuViNZrVLVXZkgTxQi6 vfP1SAG4JuFqkfOg7YjzkiAAFnEVE+N/XfNQ1i1h8RaX4Kxixk77Eel5Z0cpX6g1sbI4 4EQ5UUSxsv8RsPwFoWsc9HrnkEm6pXxiVBvy5TNvPfuYlHS8ZZGiPgleduXJDRclYXpJ NjXbJhyMmJkHq5wpcmNVQnTUb3OewI+xvNMDgtevs2qjcQOrNi+vkcqQuM0ue+9HfjDH F1sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F9J8qR7r; 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 m11-v6si43397557pla.251.2018.11.19.10.05.16; Mon, 19 Nov 2018 10:05:55 -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=F9J8qR7r; 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 S1731209AbeKTC56 (ORCPT + 99 others); Mon, 19 Nov 2018 21:57:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:56822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731202AbeKTC54 (ORCPT ); Mon, 19 Nov 2018 21:57: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 B7AE82086A; Mon, 19 Nov 2018 16:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645229; bh=rCpwJcpYF9kpU+NGDnMhKEmDAYY6Qdv1HT6cnDjoXj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F9J8qR7rZwH7QP7ymd2Afl22rVX46gMsvNMcS/uTAF+0vH1imBTBhBn7u/8jZ+B3V WdiIPFmhhrkGY6qkC5zDuECP/drXFmnWNL3OfaVET9FXFMq0U6d54usTOUwiX3vGlz Km30m0YU8lZCQhCi5U/mvyTfWhGsnv3vP1zBR8Zk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilya Dryomov Subject: [PATCH 4.19 085/205] libceph: bump CEPH_MSG_MAX_DATA_LEN Date: Mon, 19 Nov 2018 17:26:32 +0100 Message-Id: <20181119162631.461772588@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@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.19-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"