Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1126696ybe; Wed, 11 Sep 2019 09:46:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVe15+LtxzjFlst1YyptgWQeNvt0X5eFpWTawu7r99YgMRcT5raJ7A93Tsigc/m3QtU6aU X-Received: by 2002:a50:9e08:: with SMTP id z8mr38368795ede.305.1568220399360; Wed, 11 Sep 2019 09:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568220399; cv=none; d=google.com; s=arc-20160816; b=XqxAVtJ6nDd9S6yX4TBE55pOLyIoThznnnYmRZ1Wo/hza7JLafVli/4TyiH865LNSS 9bcsYYlJLPxCpbFdAd1f1GlfEiTFxcYmcZfG8ERUu09mFJ+di+N1MjenNrJX75s6uv8E TKRJ0UuksDskWeWXSPqAjJoKmu01n8tf6pWZAco8qfpMu48NbzVlz9lwV9lThTZskwrX 17fBUtcO2RWwsdmDCFbfZu/WcS0Fp74s+Ale6kdEDZrMnTwzj0fERPX3aF9YlpHjA51d FZ0XAq7BAtNdaD96pvuQRIToOF91wfVI+7a3qwJQi1Wn9jqnrq4Us6UB7K+5Rl5xQo9y +ZWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=BzvFRCU9Noapa7DSzP2levHpmPRmxOIQhOYcKQDvUf8=; b=zLnfcZ9EQaTIQZQjblcYFOG5s/K3PN2W829DMOWjCSPOK56k3NWDabxytpkemkzFOB iNePqw0vfVBAUcBo5hcsuPjIqjBUYPwurDFz7zhASNgvj4dMenwq6AnsbgdPO/rIFEwU X908bncQ0szWwSY2znNfHO8zxIhp3tNt1v049k1HHVKhdpeYAyEga01PCl5HYBc2Iejf 4mHpIBb8tD10yEbZS3FtpL/l6ESN7ez/zcp78QVqb/jEOmg5Xi0zaCrPssZxrO7c+yw8 sj6vh1UHCd11DNrdYU1/tgg3Un7k2NvlaFiF7ATq0FYFjXnwnFE4nrfsFUuSqSyrqKcS OL6w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rl2si3279543ejb.230.2019.09.11.09.46.10; Wed, 11 Sep 2019 09:46:39 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729137AbfIKQp0 (ORCPT + 99 others); Wed, 11 Sep 2019 12:45:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:34382 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728896AbfIKQp0 (ORCPT ); Wed, 11 Sep 2019 12:45:26 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9FA22AF81; Wed, 11 Sep 2019 16:45:24 +0000 (UTC) From: Goldwyn Rodrigues To: linux-fsdevel@vger.kernel.org Cc: linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org, hch@infradead.org, andres@anarazel.de, david@fromorbit.com, riteshh@linux.ibm.com, linux-f2fs-devel@lists.sourceforge.net Subject: Fix inode sem regression for nowait Date: Wed, 11 Sep 2019 11:45:14 -0500 Message-Id: <20190911164517.16130-1-rgoldwyn@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190911093926.pfkkx25mffzeuo32@alap3.anarazel.de> References: <20190911093926.pfkkx25mffzeuo32@alap3.anarazel.de> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org This changes the way we acquire the inode semaphore when the I/O is marked with IOCB_NOWAIT. The regression was discovered in AIM7 and later by Andres in ext4. This has been fixed in XFS by 942491c9e6d6 ("xfs: fix AIM7 regression") I realized f2fs and btrfs also have the same code and need to be updated. Regards, -- Goldwyn