Received: by 10.192.165.148 with SMTP id m20csp965266imm; Wed, 25 Apr 2018 10:20:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZokFl1ncf5jk+hKPCM8aMRbxtB4Hv216WIaJ/wPp0Gs6mmyLAF3y3GGJ9m2sm6w9fJO1wh7 X-Received: by 10.98.9.27 with SMTP id e27mr8617710pfd.93.1524676836664; Wed, 25 Apr 2018 10:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524676836; cv=none; d=google.com; s=arc-20160816; b=S/lFCFRxf2RB84nIRrPDDocrSnf7bKOLua06LPPul93d8yMbjIMIrBlRHmeLSAr1YY rgRXaTnkyp0TZCa4QyE6DsTV/auqk7xQcGj4zVMmdYfVgsI5vXHabiluLjlfoLHrKWkJ phz1Tk0AW7oBwrzOF/vvGSFj/27SLjeJPBRbzxgm+DKm0sjyWK3QzdkADty5JiDAh/dE +gO4uN6UeoF9UtW8X4uiYtVhFt7luJ+TFJwOYUnQY5Av4u9+5OS0+piUZVwAjYbVUYUo iGnLgvIoLj8VwYkAjzyDZZIg1s+Fv1DqFSZnLgadNQLc4MJH54hSzexFDyJhg2GnRY7K iRhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=vunyftQcCoQy3ZB4G0zV/za79M7dhMgmwAt/m7OFwck=; b=l7axdkXk3wR1Nr2XS+lHxKyIkYP+hVrcXaNVP/1ONDt2kFncfc2l8ER7IfO4lV17SN JMsRZS0hJD0lc/oy9Tk+IhmsCb7CdptxtRpEz7OwY1QX9GFxYtifNVsDaeujjuMzP0uA f9db1TUDWeTlBPe1B3PTIrjKwJ54/UFjkbBZwYONMyhazYReDvbhm+6jzXlngCiOz146 jxSMVvLdfreVoSRYjJlxzksox1CxZOq/fhylS+L+M3z9ZEXFbxH+QUu17DZYFARpumtw QSVqMUCUEN5m/VchPiTeDvjSt9def8lk/ZpEJaYE7Rb9nq37Pg6/9HdZN1hpwPwmYOyd n6Gg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si760638plt.109.2018.04.25.10.20.22; Wed, 25 Apr 2018 10:20:36 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755973AbeDYRSm (ORCPT + 99 others); Wed, 25 Apr 2018 13:18:42 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59612 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755832AbeDYRSB (ORCPT ); Wed, 25 Apr 2018 13:18:01 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C7C0A8D77B; Wed, 25 Apr 2018 17:18:00 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.34.27.30]) by smtp.corp.redhat.com (Postfix) with SMTP id 88BED1C723; Wed, 25 Apr 2018 17:17:58 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 25 Apr 2018 19:18:00 +0200 (CEST) Date: Wed, 25 Apr 2018 19:17:57 +0200 From: Oleg Nesterov To: Andrey Grodzovsky Cc: "Eric W. Biederman" , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Alexander.Deucher@amd.com, Christian.Koenig@amd.com, David.Panariti@amd.com, akpm@linux-foundation.org Subject: Re: [PATCH 2/3] drm/scheduler: Don't call wait_event_killable for signaled process. Message-ID: <20180425171757.GA10441@redhat.com> References: <1524583836-12130-1-git-send-email-andrey.grodzovsky@amd.com> <1524583836-12130-3-git-send-email-andrey.grodzovsky@amd.com> <87muxsbmkp.fsf@xmission.com> <8840ac96-50c4-f94d-eb7c-f007940163f3@amd.com> <877eowa5qh.fsf@xmission.com> <20180425135552.GD7592@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 25 Apr 2018 17:18:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 25 Apr 2018 17:18:00 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'oleg@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/25, Andrey Grodzovsky wrote: > > here (drm_sched_entity_fini) is also a bad idea, but we still want to be > able to exit immediately > and not wait for GPU jobs completion when the reason for reaching this code > is because of KILL > signal to the user process who opened the device file. Can you hook f_op->flush method? Oleg.