Received: by 10.192.165.148 with SMTP id m20csp3915575imm; Mon, 30 Apr 2018 08:30:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoy+tT3W6GIASvxzkAyGF/0ioJasokSx9JxtrVMJbfeAp0kdBMSVopRkioyQUS0V2EaMbCy X-Received: by 2002:a63:43c6:: with SMTP id q189-v6mr10707813pga.123.1525102250950; Mon, 30 Apr 2018 08:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525102250; cv=none; d=google.com; s=arc-20160816; b=OIU3q1OCZWD5u6l2lGycQvGEqihSKigsOMguvJkpi8ii5g0unLfxBjF3KJjS69GTqc tFmGhk7QMN8srnSllnR3Pa/OdbkyNcQMC0uBjlSHsq4+OOiOzxDanhYKD0CZM5y6HRw+ V+gZ2JsU4psGvG+kvqbqri41+fkf+z34UbLw9j1wSKhOVrVAV58hS2t9QC3DXtCDkeY1 S1N7MMWBoyOjLaMC9ccRsVOa3fFBcLsJM68o4HFVnlrd7NPNkVh30k+voJesvduMaayT jQfuhuIp+kSJs3cXmRbnI+Iz3EW9fY6YGpxKbEvA0p74WNaoeNFHtOrXeRv0uVV/Ub0a K3kg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=nMJ6wNDvKmLRr8+zf3oK0rrbL5FgPuklIZP1QYQjkb0=; b=JLBjxLHok+EAVsoLUJ0JzF+rNe4RYWwH+cZQdnY9NpZK3VaWov9l0x7t4p0oByGIb6 Qd0d1e4sOYeIBB/FIw+QkEVVQDyDkKd5ciTIyISBMwn9K4UWMECR6Zn5s6fI4tE5p9Er 3mhCvwG9donakJZ71UY1lJpnYOa2+GCIdXeAqgMtyaska2ZEPVZQfqj7GD6QfI4jF9C+ DlK9UoWxE4Ak7Ur8Symf8gNfrGpdf6eq6HUOQo3A2ch1GJQ43IkSSKna5kVaJc1xkJtW dh/c4/9qiQhm+bXqC5QshRnEQiLrhIDDqmbtBo/fEoQVEMKhjHnUdpW60Q2TaL1J0A4g SbmA== 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 v41-v6si7519432plg.451.2018.04.30.08.30.36; Mon, 30 Apr 2018 08:30:50 -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 S1754704AbeD3P3p (ORCPT + 99 others); Mon, 30 Apr 2018 11:29:45 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34728 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753480AbeD3P3o (ORCPT ); Mon, 30 Apr 2018 11:29:44 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 66066406C795; Mon, 30 Apr 2018 15:29:44 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.34.27.30]) by smtp.corp.redhat.com (Postfix) with SMTP id 8AC24202327B; Mon, 30 Apr 2018 15:29:42 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 30 Apr 2018 17:29:44 +0200 (CEST) Date: Mon, 30 Apr 2018 17:29:41 +0200 From: Oleg Nesterov To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: "Eric W. Biederman" , Andrey Grodzovsky , David.Panariti@amd.com, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alexander.Deucher@amd.com, akpm@linux-foundation.org, Christian.Koenig@amd.com Subject: Re: [PATCH 2/3] drm/scheduler: Don't call wait_event_killable for signaled process. Message-ID: <20180430152941.GA10583@redhat.com> References: <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> <20180425171757.GA10441@redhat.com> <874ljyu98e.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 30 Apr 2018 15:29:44 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 30 Apr 2018 15:29:44 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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/30, Christian K?nig wrote: > > Well when the process is killed we don't care about correctness any more, we > just want to get rid of it as quickly as possible (OOM situation etc...). OK, > But it is perfectly possible that a process submits some render commands and > then calls exit() or terminates because of a SIGTERM, SIGINT etc.. This doesn't differ from SIGKILL. I mean, any unhandled fatal signal translates to SIGKILL and I think this is fine. but this doesn't really matter, > So what we essentially need is to distinct between a SIGKILL (which means > stop processing as soon as possible) and any other reason because then we > don't want to annoy the user with garbage on the screen (even if it's just > for a few milliseconds). For what? OK, I see another email from Andrey, I'll reply to that email... Oleg.