From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Date: Mon, 5 Sep 2022 04:23:24 -0400 Subject: [Cluster-devel] [PATCH v2 06/14] jbd2: replace ll_rw_block() In-Reply-To: <20220901133505.2510834-7-yi.zhang@huawei.com> References: <20220901133505.2510834-1-yi.zhang@huawei.com> <20220901133505.2510834-7-yi.zhang@huawei.com> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Thu, Sep 01, 2022 at 09:34:57PM +0800, Zhang Yi wrote: > ll_rw_block() is not safe for the sync read path because it cannot > guarantee that submitting read IO if the buffer has been locked. We > could get false positive EIO after wait_on_buffer() if the buffer has > been locked by others. So stop using ll_rw_block() in > journal_get_superblock(). We also switch to new bh_readahead_batch() > for the buffer array readahead path. > > Signed-off-by: Zhang Yi Thanks, looks good. Reviewed-by: Theodore Ts'o - Ted