Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4063746pxb; Tue, 26 Jan 2021 11:23:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfoDO6waNbnqCxCy4UuOJ4O9h7+4facv1KcThQY59gd9DaKOHG5lUUciOU/ZrEcqHu78qI X-Received: by 2002:a17:906:ada:: with SMTP id z26mr4480082ejf.127.1611688986696; Tue, 26 Jan 2021 11:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611688986; cv=none; d=google.com; s=arc-20160816; b=X/aoEt4yWZj7lk0TphAEuoix2NfPfq9uYs0iE0ozKIKfucH+UKhsdjhiuX1JDpLFt1 5TL4teVdPHE1t2gJJk7QsMBke4gXctexqb1pbw/3ZVT2AVd2GqEzk0tYlw68KWGpgPou cr5h4UjlH26CfxBbCeiDw0tUBGRVG8jjo9pY3mmeIvTE1zDb/8H7aQt/4GzpfuRUql7A m0jnOcHXs59cczDk4fn2ESNldfpr2JGs8yRHmFgelHgr99X+FiM4G1HZ1eAP00SZqfHh r2eNUhxyIpSAEnn3QqUIEDEJhsc0gWiuPTyxmRPfas8vDSsXCOBeYNAQkLW9m0kZ2G8Z SWtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jywVRgQb+R/8nrC6wcC0tprf9W0TUepj2A0VJnxWY7w=; b=rdc7k+CxO8isUvEJVlI+NCekoACLfxCPsSjiEj1RDZsfFwYwejdO9+zNHXLeaK04f3 2CluCbfHpF5b4kqZ/Syyf0BwrxfWrVZXUIzr5mxKeTYPoFJBhFOF7gkKXkZCEqXNd37U Jq1MjhcOpdOBEhZmf5xAcYIQ/n7h4MKrc/nZMZzmLNaXyZV83+yvxxfhx7alPUtv1cxL IA7xivVrdfXSP7/UHuKgNR/4xgBBEHf6JAAkT9AJasWlrEMwPXf1doa+FOIEApgNIWeR brNdukXYoxBYj5Jxs03IrC6ZhzEruQ00buhuTsaFV0zll1+yVgm3h4dzqLgr+QFd3G1t pOzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=D4n+1nPu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si7327559ejz.170.2021.01.26.11.22.41; Tue, 26 Jan 2021 11:23:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=D4n+1nPu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732242AbhAZPLV (ORCPT + 99 others); Tue, 26 Jan 2021 10:11:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406197AbhAZPJV (ORCPT ); Tue, 26 Jan 2021 10:09:21 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E93DC061A31; Tue, 26 Jan 2021 07:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jywVRgQb+R/8nrC6wcC0tprf9W0TUepj2A0VJnxWY7w=; b=D4n+1nPul2NOhNPZRJuwX9YBXA JCsbDOMHCHWzYej2yXoxgPSqOSFOSutcobuuWI4mrpr2gxzMUDgMRUeHaPla/101DVXo0E2AWgrYV 9qcPPaqJlzqQgs6POzLFnL8qlSEosQofGYG+V4fgpkbMBH1OXZo0s+BaoVzJ/LlxghxvO5AM8vdZC jMQpJZRfNz/zt9dVM8wPjs6RQke1S6dshAm2nT/DLTOsyf8oKb4OkCjOmzr+JzXgQOSUezIeXLnIW NfWwvWl5+8K859FC+VwnewuNACvy8w+x7rH5FySoGGAL4E4cH50i7BeSeMiPrAJHyFaG6G1Gg8GMv qIaWxJVQ==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l4PuB-005nGD-92; Tue, 26 Jan 2021 15:05:48 +0000 Date: Tue, 26 Jan 2021 15:05:19 +0000 From: Christoph Hellwig To: Ming Lei Cc: Changheun Lee , Johannes.Thumshirn@wdc.com, asml.silence@gmail.com, axboe@kernel.dk, damien.lemoal@wdc.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, osandov@fb.com, patchwork-bot@kernel.org, tj@kernel.org, tom.leiming@gmail.com, jisoo2146.oh@samsung.com, junho89.kim@samsung.com, mj0123.lee@samsung.com, seunghwan.hyun@samsung.com, sookwan7.kim@samsung.com, woosung2.lee@samsung.com, yt0928.kim@samsung.com Subject: Re: [PATCH v3 1/2] bio: limit bio max size Message-ID: <20210126150519.GA1377213@infradead.org> References: <20210126013235.28711-1-nanich.lee@samsung.com> <20210126035748.GA1071341@T590> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210126035748.GA1071341@T590> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2021 at 11:57:48AM +0800, Ming Lei wrote: > > *same_page = false; > > return false; > > } > > So far we don't need bio->bi_disk or bio->bi_bdev(will be changed in > Christoph's patch) during adding page to bio, so there is null ptr > refereance risk. I've started resurrecting my old plan to always have a valid device in the bio from allocation time on. It is pretty invasive, but probably worth it. Sending out the first prep series right now, the actual changes should be ready for an RFC later this week.