From patchwork Thu Oct 11 13:57:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 10636659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 62CF7112B for ; Thu, 11 Oct 2018 13:57:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54BB72B771 for ; Thu, 11 Oct 2018 13:57:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 482412B777; Thu, 11 Oct 2018 13:57:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDC492B771 for ; Thu, 11 Oct 2018 13:57:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728193AbeJKVZK (ORCPT ); Thu, 11 Oct 2018 17:25:10 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37572 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726537AbeJKVZK (ORCPT ); Thu, 11 Oct 2018 17:25:10 -0400 Received: by mail-wm1-f66.google.com with SMTP id 185-v6so9599903wmt.2 for ; Thu, 11 Oct 2018 06:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=xsdn/glzli9NRzNrWLzjQjRkc0U070V/HPpZQK1h9pk=; b=deVS+lMhTtCmLKabLVieQxs9I6O+Kyr+4skkMZFBZ6LbiN5wqy9t6DYR8OP6+kMNGB BH2DZnOXS9vs6I+pZzYYC0bSVL8ymRHDvfi3tJVJ8MPfxhm2kiTvmtjHTKu+7hCOpK83 NjEyJ4HrdDueslm4fOihHl3xPCSbZsIQZFny7iQbjeWzaVT2kxefNtqGx3+8U0CBxk7b ftHzYCMXXuR45nHXazALcxRDIV0UmCwwVl6ZNm5kGhe1fENTANrcyb8iQkGw0oWibzf6 XAzqaueYI4lXK1/UntP3nh3Dsp3xH+INpgA7oJUAvnCTw+Xa10OOokOXSoXIDVWTrEdq 3ZGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=xsdn/glzli9NRzNrWLzjQjRkc0U070V/HPpZQK1h9pk=; b=anPOMKrpqHxX8XaGpNMyJSGRjRpodNyZD4ONj7zb7uloc8Fk5oKzueb6mtXnKNMrDC tzFxPLDYKzd7uc8s85Fcetn8RCCOgH4EvHJiMNICY3RtknDGcwCD2Jff8HynI4fdmscS Z4EFZ8x7X6rl9sWnZNw/zZO9H/fB/L5CRstmjaqqqeDtuh6IiqFMT+wmAdpftpJ/64ig aURcJDTKXG7GjANDdgrr8DWzo3dN0nFMUKLy6Z1tEMxh4DevHe7CgjeWgUNUgS5rEwvk uz1iGc0y7DTsScjcDjXiVN6dtuCrnBFdPkxH8F3kLlwN5p1lumjOxY1HTLVkNqSTZ/Oe Lylg== X-Gm-Message-State: ABuFfojg2RLzuYjzltMTsi6eFgsDioc616aqbWUjBPmiP4+Ho29DZ2dI uMzbtsfFZZzYMB5ZV7cmHr6U1epx X-Google-Smtp-Source: ACcGV63REv57Qn1ODFLyXABqsMVyasMSm1sKOYoBRf2mvWgxNYlFh7pXBkMSFCJpMgoRn22P1iibUA== X-Received: by 2002:a1c:dac7:: with SMTP id r190-v6mr1878985wmg.137.1539266270406; Thu, 11 Oct 2018 06:57:50 -0700 (PDT) Received: from orange.redhat.com ([213.175.37.12]) by smtp.gmail.com with ESMTPSA id q17-v6sm16802790wrw.19.2018.10.11.06.57.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Oct 2018 06:57:49 -0700 (PDT) From: Ilya Dryomov To: ceph-devel@vger.kernel.org Subject: [PATCH] libceph: bump CEPH_MSG_MAX_DATA_LEN Date: Thu, 11 Oct 2018 15:57:22 +0200 Message-Id: <20181011135722.15246-1-idryomov@gmail.com> X-Mailer: git-send-email 2.14.4 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Jason Dillaman --- include/linux/ceph/libceph.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index 49c93b9308d7..68bb09c29ce8 100644 --- 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"