Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3851827ybx; Mon, 4 Nov 2019 04:00:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwD7o5lz4pVcTR72f8lZB2rBPtIKjcaJu0JwxANFY9pvXdhAJVjGYG93doPFeZv20uI8OTN X-Received: by 2002:a50:91f6:: with SMTP id h51mr28381400eda.99.1572868827728; Mon, 04 Nov 2019 04:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572868827; cv=none; d=google.com; s=arc-20160816; b=qb34E58RKznoOgRJQszxmoZdwlzIm3bK0FWBxTwitvyNTRuh4deF4uDS8m/exdlaCi zDdwsFm16y6LZiTPHgDcbf/PLWkwwTU1S+wAYqutr+DC4o6bP8y/KkMd+fRyZdVWywKh KnwiFNLO0x6jFmGzV/bWq8dioXIwNAPbAyK/CyOts0VBRZqiyh0pbR8xCKuyApEwOB2F +KVzF4+3fHc84+V9+5WeKop0HJNBxaUQ0wRaYvMSxbnGDFMnrAMV5ybvqHOelowhZYw/ 3sgzGcujqOduJzCXFwmfuXPUgyRA6+4G6lgPWnIQwoEzNzsbRulRiwSOJkbxUe2Gh4CA gHwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=kWpU2svm+H4QSGSYvSSdSFgBzX1sBiAj2ernJZXf+bA=; b=pmQ2lZjjAD993ZD2DRlnGg9PiTV1yuzXBYhegqqWqQdKofCesk3uVvIMiE8lViXY9a dNgB5uhcAeHYFGsaqnAK6nt5N62H/Iscx0KNmXQZfx+3HTqqpvEpaF8bEe2Y1Lp2jNUF QM/t/ChEH30U8U+yVzyDd2psuXofJ7U7gjx4ePytdTG9fQwTHHePPigcigATEqidTy2v d/Lrx75Q8YTBQhbYKM7IeCKOjHSiSb0SG9IJcGtM2G1DTr0ZYVq5lQ/YwRnD3MyK62Hn ygSFrsfSco5LoFE2aO2GueeCnX1MnGbx6pyJQUaLeyGmu+62/F7Q9B7S395Y8AZvRtbD 8bwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20si7061455edd.294.2019.11.04.04.00.03; Mon, 04 Nov 2019 04:00:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728592AbfKDL7p (ORCPT + 99 others); Mon, 4 Nov 2019 06:59:45 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:61760 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727838AbfKDL7p (ORCPT ); Mon, 4 Nov 2019 06:59:45 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA4Bx8Xh047388 for ; Mon, 4 Nov 2019 06:59:44 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2w2k500u5k-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 04 Nov 2019 06:59:43 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 Nov 2019 11:59:42 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 4 Nov 2019 11:59:39 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xA4BxcEN47120510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Nov 2019 11:59:38 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A3C504C050; Mon, 4 Nov 2019 11:59:38 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C8F694C04A; Mon, 4 Nov 2019 11:59:36 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.82.150]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 4 Nov 2019 11:59:36 +0000 (GMT) Subject: Re: [RFC 0/5] Ext4: Add support for blocksize < pagesize for dioread_nolock To: "Theodore Y. Ts'o" Cc: jack@suse.cz, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, mbobrowski@mbobrowski.org References: <20191016073711.4141-1-riteshh@linux.ibm.com> <20191023232614.GB1124@mit.edu> <20191029071925.60AABA405B@b06wcsmtp001.portsmouth.uk.ibm.com> <20191103191606.GB8037@mit.edu> From: Ritesh Harjani Date: Mon, 4 Nov 2019 17:29:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20191103191606.GB8037@mit.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19110411-0008-0000-0000-0000032A81F2 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19110411-0009-0000-0000-00004A49D734 Message-Id: <20191104115936.C8F694C04A@d06av22.portsmouth.uk.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-04_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1911040120 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 11/4/19 4:13 PM, Ritesh Harjani wrote: > > > On 11/4/19 12:46 AM, Theodore Y. Ts'o wrote: >> On Tue, Oct 29, 2019 at 12:49:24PM +0530, Ritesh Harjani wrote: >>> >>> So it looks like these failed tests does not seem to be because of this >>> patch series. But these are broken in general for at least 1K blocksize. >> >> Agreed, I failed to add them to the exclude list for diread_nolock_1k. >> Thanks for pointing that out! >> >> After looking through these patches, it looks good.  So, I've landed >> this series on the ext4 git tree. >> >> There are some potential conflicts with Matthew's DIO using imap patch >> set.  I tried resolving them in the obvious way (see the tt/mb-dio >> branch[1] on ext4.git), and unfortunately, there is a flaky test >> failure with generic/270 --- 2 times out 30 runs of generic/270, the >> file system is left inconsistent, with problems found in the block >> allocation bitmap. >> >> [1] >> https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/log/?h=tt/mb-dio >> >> >> I've verified that generic/270 isn't a problem on -rc3, and it's not a >> problem with just your patch series.  So, it's almost certain it's >> because I screwed up the merge.  I applied each of Matthew's patch one >> at a time, and conflict was in changes in ext4_end_io_dio, which is >> dropped in Matthew's patch.  It wasn't obvious though where the >> dioread-nolock-1k change should be applied in Matthew's patch series. >> Could you take a look?  Thanks!! Looked into the above mentioned branch. I see the patches of iomap patch series were properly applied. It is ok to completely remove function "ext4_end_io_dio" and directly call for "ext4_convert_unwritten_extents" from "ext4_dio_write_end_io" (which is also done by default). Actually io_end_vec in dioread_nolock series was used for AIO DIO, since AIO+DIO was already using io_end structure and all io_end usage was moved to use io_end_vec. But since in iomap, we don't use io_end structure so it is ok to directly call for ext4_convert_unwritten_extents with offset & size argument. hmm, I will try and run this generic/270 at my end to see what is going wrong with this. It would be good if you could share the xfstest config under which this is failing & if possible the failed logs/report. Meanwhile, I will test generic/270 on your given branch with dioread_nolock & 1K bs configuration. -ritesh