Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1159056ybc; Tue, 19 Nov 2019 15:42:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwRP74I4ebETes2kdtH+xiQzYDpyYoAQBkADvEvhBlCLMBvYD2Dx0LQEogJz7iKfLNTGjpV X-Received: by 2002:a17:906:c57:: with SMTP id t23mr592888ejf.240.1574206963992; Tue, 19 Nov 2019 15:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574206963; cv=none; d=google.com; s=arc-20160816; b=pcN+8JLLoxyjd9saX2XGDEnvcCuqot1WVosZVPHCMRodru7PsMZIz3HDBCzgNviRuF pNGcyi0BwZ4A1F/PB1/yU3tJlH4J4S32dZU7ouu5ns5dUevxVn4G8u3Efk0QyB2HZrSP G2k2IYjndo7d4GiGYOvQfk3ss6BQyzRcA4SQh5/MJQlKE12gwe3xS1DOstK2dNyZMREw jbNI7fSv7gLmbuRH4F7hCKfEeDq97KylvBbFa7wHkpYS87Q/pZp+02yAaxde/TY9B7uC pgPEtEQXPtW+FwWkWqVlOErdY2G/5j5i8jMd5WF+wTANP74/JrbWGavg/8n5p0reREKY S7Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=LGdI8nMvJO9Yp2V4F8P1ev7tTWwm2jfSwnW1T5/k5as=; b=reUxES9j5Phe0bwFbJ4wQ/RPTqgA9qwqZJezg4lZZcYXAt6j/3+/SoawHe+FwSHskn SSkga3r3shndjSVig+YovujDjk+t+1SgrZKL4Ih1HPw6JS/BSJbx9Fvi4Uhc1zqO7ObV lBKxNtKJa9m1oEWhLAILyCH4hnHE2snfQLu6KuZJBDKLKwu73JlHmRD5g3wCnebQKX/L xuP/QmnwJgM7n8eu6v06iHW6H4wTAl4hEwEKe9sSsQKob+MLEKPPBHfOwRAdvxJ7lgLj zz0AQYRIKotoMzlLcwqW2PrcV9VUMmymJqLVDXsw/IuKDkyeAkus3csR/znQh74sX59a twhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u18si10527845ejj.343.2019.11.19.15.42.19; Tue, 19 Nov 2019 15:42:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbfKSXk7 (ORCPT + 99 others); Tue, 19 Nov 2019 18:40:59 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:40716 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbfKSXk6 (ORCPT ); Tue, 19 Nov 2019 18:40:58 -0500 Received: by mail-pj1-f66.google.com with SMTP id ep1so3335475pjb.7; Tue, 19 Nov 2019 15:40:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LGdI8nMvJO9Yp2V4F8P1ev7tTWwm2jfSwnW1T5/k5as=; b=s1Semn+6Dv5dbkdxqX9rBSd8PZOFcTn99KrRedSZLD5pyv+MYTTDWzY6ytMJ/r5UuM rLeZs01qmvEZH01Zf7DodcBILb1jEBoLAOctWD69HrfpcuCocCIOkwaYLwY8oohX9nuk YDCn1UHt8pOzeq+1szIdWkzmyf+3ZDOOXtew9rRGiaL1EcCf259izmykgt3viJTW1jdt 5DLI6n+vgbOCy6uWwCvewCrM+Kv7XeRir/xpPhksRKCIGAzA4GPHoMyrO1FuwN9kmp9T mxtpaMlfWfXpE4B02sFWvlI38fZSEAIVXXb73CA1sETWB+8BUAGBIidX0YkSD/VmqiMq L84Q== X-Gm-Message-State: APjAAAWwh/uKwrdkcf5MCS8GiZIT4Ib4ze0FBoeZOINvVkCsz+6oTcm7 vVCtUIIt5NG8Nc2VjdSsJrwfZnTIatU= X-Received: by 2002:a17:90a:bd95:: with SMTP id z21mr246817pjr.10.1574206857435; Tue, 19 Nov 2019 15:40:57 -0800 (PST) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id x192sm29727552pfd.96.2019.11.19.15.40.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Nov 2019 15:40:56 -0800 (PST) Subject: Re: [PATCH v2] loop: avoid EAGAIN, if offset or block_size are changed To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: stable@vger.kernel.org, Jens Axboe , linux-block@vger.kernel.org References: <20190518004751.18962-1-jaegeuk@kernel.org> <20190518005304.GA19446@jaegeuk-macbookpro.roam.corp.google.com> From: Bart Van Assche Message-ID: <1e1aae74-bd6b-dddb-0c88-660aac33872c@acm.org> Date: Tue, 19 Nov 2019 15:40:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190518005304.GA19446@jaegeuk-macbookpro.roam.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/19 5:53 PM, Jaegeuk Kim wrote: > This patch tries to avoid EAGAIN due to nrpages!=0 that was originally trying > to drop stale pages resulting in wrong data access. > > Report: https://bugs.chromium.org/p/chromium/issues/detail?id=938958#c38 Please provide a more detailed commit description. What is wrong with the current implementation and why is the new behavior considered the correct behavior? This patch moves draining code from before the following comment to after that comment: /* I/O need to be drained during transfer transition */ Is that comment still correct or should it perhaps be updated? Thanks, Bart.