Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6968663ybi; Mon, 22 Jul 2019 04:55:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjXzZBBFAF4kz0vqFukcA9/V8DZ/SEw+z3KzztrBcbMRojgsHaNEMIbJ5YpcJlFhhmAJRM X-Received: by 2002:a17:902:8f81:: with SMTP id z1mr73457102plo.290.1563796547038; Mon, 22 Jul 2019 04:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563796547; cv=none; d=google.com; s=arc-20160816; b=ZdMpF2DdRH4xlwZS+FxnVnDEqrJAjUSgZTvJzs2LzzHXOdp9SJZhccXLuHAkEtx1aa qfcQYiTlqg67eTJkhW+XRRJWnAVrnDOi3Az5r5jVtErF9Y17Ubic/FrqUpztysB7pbFU WMQKUIIBG2h+JnU0IGitsxT8ceRPKPMPHZVsD+D2xTwBVDMSWp1sR5+XpI/Es6MdySz8 T+Pfh22gllQH+U3IIzgGhMBpR+YgVnTrmxGNDYWvwVH9WEZU4zOruK1X9/B83VlEH95n ADnAVcX5N9hWD7CRUGrer+M9j+COGzZmkbf8nLc3u+u6HoIs21YsMjW+tJ0eQKXE6aSx ScfA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KU3XO7neiNJoCLlCx1kSbawFotPCDQuEmLUnpBRP3R8=; b=z908j+1vwMsL4qQe4gRmvLuVXvugZiMGAYuT7zLX+kAz8sn9TXXuQ1UF+vZ8/YWdm/ D8pB8GknG4QTlzL2HH1WFL0F8unHIlu/H7mkrj4Zw6SAaxUXexJsgtfjHtSyAraS9JnN LYbN1BWqY3vlYVDQf0Geh/IRwMELbEJfRdI06g/BDXMZlXBZnJlkkuecPkq3VVaUHoRi Kv9dIwyephFP0gJccL2tB5jrBlWwJNeh1ASd/pVdiFsvD1cWCOUgSX/P7471B8eSqrQl vJOypuI9jOYF209NKLV+z4lBVDvrGYIcBoHMK7QT1ij8pm8RMwu3qDa4/W6C2i0Z4wPi eo6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fx0OUGva; 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 h1si7974217pgv.67.2019.07.22.04.55.31; Mon, 22 Jul 2019 04:55:47 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fx0OUGva; 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 S1729180AbfGVJop (ORCPT + 99 others); Mon, 22 Jul 2019 05:44:45 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35348 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729172AbfGVJon (ORCPT ); Mon, 22 Jul 2019 05:44:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KU3XO7neiNJoCLlCx1kSbawFotPCDQuEmLUnpBRP3R8=; b=fx0OUGvargc7kZuDQBT1BVZvx6 akZ3IxLvVFpwpTZ6mwxG/fDjJWbzOIsUrUpGAbXfOCDOTt/ZY9Og/OO6v1ZKX2WLk0UKeOuqaM5He JS3eKYYglPuo39ThJdRVk2HstA3K2/0b6YcWdNagG4gTFQf6qHKpgDxoFKvgUpg1SZ+OEMcU9hNeg nQTH/RbZzXAV6COOglFFC/UlRSXF47ADoLQbyXc03H9Kt31xN2rPHCxvirU8nLtJUgVejCURB9uha Iu8bHoVGJ3ZS4ucITXCip6qt9/Cmo1Y1s1eOcE8U5YqnKeJewWAL0DOk8cXwO2Rp1NvN/92mIq7KX 5lcn/C2w==; Received: from 089144207240.atnat0016.highway.bob.at ([89.144.207.240] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hpUs4-0001tJ-OZ; Mon, 22 Jul 2019 09:44:41 +0000 From: Christoph Hellwig To: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Jason Gunthorpe , Ben Skeggs Cc: Ralph Campbell , linux-mm@kvack.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] nouveau: return -EBUSY when hmm_range_wait_until_valid fails Date: Mon, 22 Jul 2019 11:44:25 +0200 Message-Id: <20190722094426.18563-6-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190722094426.18563-1-hch@lst.de> References: <20190722094426.18563-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -EAGAIN has a magic meaning for non-blocking faults, so don't overload it. Given that the caller doesn't check for specific error codes this change is purely cosmetic. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/nouveau/nouveau_svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c index 5de2d54b9782..a9c5c58d425b 100644 --- a/drivers/gpu/drm/nouveau/nouveau_svm.c +++ b/drivers/gpu/drm/nouveau/nouveau_svm.c @@ -501,7 +501,7 @@ nouveau_range_fault(struct hmm_mirror *mirror, struct hmm_range *range) if (!hmm_range_wait_until_valid(range, HMM_RANGE_DEFAULT_TIMEOUT)) { up_read(&range->vma->vm_mm->mmap_sem); - return -EAGAIN; + return -EBUSY; } ret = hmm_range_fault(range, true); -- 2.20.1