From patchwork Mon May 30 13:34:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9141471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 63B836082F for ; Mon, 30 May 2016 13:37:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5896A27D17 for ; Mon, 30 May 2016 13:37:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D567280B2; Mon, 30 May 2016 13:37:07 +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=-6.9 required=2.0 tests=BAYES_00,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 EC4E52819C for ; Mon, 30 May 2016 13:37:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161537AbcE3Ngw (ORCPT ); Mon, 30 May 2016 09:36:52 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34582 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161559AbcE3Ngv (ORCPT ); Mon, 30 May 2016 09:36:51 -0400 Received: by mail-pa0-f65.google.com with SMTP id x1so5111341pav.1; Mon, 30 May 2016 06:36:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7hX2K+74tm99AACTY6FLEqp5bSPsItbaWJVioZyyuxE=; b=KIpi0QKNHfo/pU8LX8gUnPmbbDrNYn8SYCZxqjaVrL+vxoeoYYrw96KrUq8+rvt6rg MTjvsq36MD3bZTigyeIarksEW073bo9DGyKqrWz66XQuFLzabKMqkWa/XVMx2GFjVeD0 1FLtyf9kz1F/4ldcqmR2KvcMOSIkVZ9ircADJgOpVjt7NiCXz1EW9n56D5L6ZpbLD3LP uRsCh1O8MWu2Lj+RoDEsu31N4s2eqgnHofenmH4j9K2MVHzZhc1Vf3YkTjE9tY5rwAoI LM7jVPGq4rqEOKrNfcwrDtME6myoquWTBJjKBjf1nqBykZ62ZqA/1CPh6piDwFnmHfls 5JCw== X-Gm-Message-State: ALyK8tKvbY7+lg8a8zFm4gCt3maT44ed1AVByqIGK0jtH46PW8SyNXZo4JTTP0oBwb0SuQ== X-Received: by 10.66.224.141 with SMTP id rc13mr41340431pac.29.1464615410301; Mon, 30 May 2016 06:36:50 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id f66sm33264316pfj.28.2016.05.30.06.36.49 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 30 May 2016 06:36:49 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Keith Busch , "Kirill A. Shutemov" , Kent Overstreet , Mike Snitzer Subject: [PATCH v6 8/8] block: mark BIO_MAX_SIZE as obsolete Date: Mon, 30 May 2016 21:34:36 +0800 Message-Id: <1464615294-9946-9-git-send-email-ming.lei@canonical.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464615294-9946-1-git-send-email-ming.lei@canonical.com> References: <1464615294-9946-1-git-send-email-ming.lei@canonical.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some in-tree drivers may use big bio which size is more than BIO_MAX_SIZE, also the macro is seldom used in tree. So mark it as obsolete now, and it doesn't make sense after multipage bvec is introduced. Signed-off-by: Ming Lei --- include/linux/bio.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/bio.h b/include/linux/bio.h index fb59a06..b284595 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -41,6 +41,13 @@ #endif #define BIO_MAX_PAGES 256 + +/* + * This is obsolete now and shouldn't be used, and the macro + * doesn't make any sense especially when multipage bvecs is + * supported. Even now some drivers may pass big bio which size + * is more than the value, such as bcache. + */ #define BIO_MAX_SIZE (BIO_MAX_PAGES << PAGE_SHIFT) /*