Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 883742E85C for ; Thu, 21 Mar 2024 05:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710999632; cv=none; b=cKDf68rsVFe1TFrlNyYxpR4z8hq0kQshuLAF9bsmmexrVZVN77ET/fqKM+TdIIaxh58bsfa0zJjipA+tWcUg5xIOJbg59T1MWSZQhzpLmdoJPF25fDNKy790xU7Ikq2+hAOkS0bZ25yrEVDY1UDXcD5K4XZZUMnVoRh+PvOsDD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710999632; c=relaxed/simple; bh=UOtGU9bqcepD3f6HblhxMGOQncy71sN+C7ldQsWHJng=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=MqgxKn/L//QcISzZkgeP6TDlnr3lcdzaHkmOSxwsmXJtFj/pyOv9csRAeebefpqCeRgWLurGvTQoejITgbGDSNRApQRPMVhR1Vp0D9FPJfVvi+FexWmlF+jcxA7ImH0XzkiBnwcaXzd04cEkXhyVV3lgn+K/Eb0eyzddaqlNGzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4V0Z405m1Lz1h2bC; Thu, 21 Mar 2024 13:37:52 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id B521014013B; Thu, 21 Mar 2024 13:40:26 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 21 Mar 2024 13:40:25 +0800 Message-ID: <2584271f-a939-4929-970e-daf0ac1ca409@huawei.com> Date: Thu, 21 Mar 2024 13:40:25 +0800 Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 11/11] fs: aio: add explicit check for large folio in aio_migrate_folio() Content-Language: en-US To: Matthew Wilcox CC: Andrew Morton , , Tony Luck , Naoya Horiguchi , Miaohe Lin , David Hildenbrand , Muchun Song , Benjamin LaHaise , , , , Zi Yan , Jiaqi Yan , Hugh Dickins References: <20240321032747.87694-1-wangkefeng.wang@huawei.com> <20240321032747.87694-12-wangkefeng.wang@huawei.com> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) On 2024/3/21 11:35, Matthew Wilcox wrote: > On Thu, Mar 21, 2024 at 11:27:47AM +0800, Kefeng Wang wrote: >> Since large folio copy could spend lots of time and it is involved with >> a cond_resched(), the aio couldn't support migrate large folio as it takes >> a spin lock when folio copy, add explicit check for large folio and return >> err directly. > > This is unnecessary. aio only allocates order-0 folios (it uses > find_or_create_page() to do it). Yes, only order-0 now, I will drop it. > > If you want to take on converting aio to use folios instead of pages, > that'd be a worthwhile project. OK, will try, thanks for your review. >