Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751378AbdHFEPB (ORCPT ); Sun, 6 Aug 2017 00:15:01 -0400 Received: from imap.thunk.org ([74.207.234.97]:41380 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751123AbdHFEO7 (ORCPT ); Sun, 6 Aug 2017 00:14:59 -0400 Date: Sun, 6 Aug 2017 00:14:57 -0400 From: "Theodore Ts'o" To: Tahsin Erdogan Cc: Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ext4: make xattr inode reads faster Message-ID: <20170806041457.3sedyg67nnvypwhx@thunk.org> Mail-Followup-To: Theodore Ts'o , Tahsin Erdogan , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org References: <705A22C6-4583-47D4-8FB0-B2820F7051F3@dilger.ca> <20170717062012.26331-1-tahsin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170717062012.26331-1-tahsin@google.com> User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 555 Lines: 14 On Sun, Jul 16, 2017 at 11:20:12PM -0700, Tahsin Erdogan wrote: > ext4_xattr_inode_read() currently reads each block sequentially while > waiting for io operation to complete before moving on to the next > block. This prevents request merging in block layer. > > Add a ext4_bread_batch() function that starts reads for all blocks > then optionally waits for them to complete. A similar logic is used > in ext4_find_entry(), so update that code to use the new function. > > Signed-off-by: Tahsin Erdogan Thanks, applied. - Ted