Received: by 10.192.165.148 with SMTP id m20csp1333506imm; Wed, 25 Apr 2018 17:04:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ctMNbHooHv4FYa3vNiI73mlejkti50OPYyLpDyDZTJbwiUTe070WENZpa3OLAPGyO/u4W X-Received: by 2002:a17:902:bd41:: with SMTP id b1-v6mr30448802plx.302.1524701065350; Wed, 25 Apr 2018 17:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524701065; cv=none; d=google.com; s=arc-20160816; b=MLlYhfW+7RBNQL8x9HSi5afRTXPj5dIqoEyVKuwG6VyP+8ka4WoFFLFilfybM5I8Tg IKsgnstNpo6FsKIiVglsWXTr6NhcaintjqEr6we7IjZ4S02pNV1z9nmihiFC81E6DXkr tBkFxIT7QdFyAjG/RVvmbD1KHRBkeOHicESJVQiJztt/JmSqiRoizzyliftrmItUgCpN UQ+pLTxD6tUAAcseSRKiNyW54UEllkbd1LMoZCdGO2MlxjbUcZ6q419u+YFtHeD1YUER W4WjTAPa4qGOI6noNAXD/SErRjCm3GBiefWZcu+pdMeaH/ARtdHuCLhxn7SAgjX3KCYc oesw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=wd8S6PFB8JXvuN0xP57cgq3y+/2E3q5vJ2i9eO7FP3U=; b=KvU03EMFYGra5/bMikZFKm94sezoG1eAd1I5J51b1n2iWP4AqhK2ab6fktgD4TkDKI xwDzTxtKP8eauF4gUghHM9ckeDwd0nQEeHBau8iGA6ZnmbfNkQFCSJZGRupYfC6E+Sjl wXToJFdiPyaqtAbvseSl2idQVMBiSJKBf2WkKS53YoZS+Iq02ujr0040R3xBb+wWAh/n ytwCEFP78TMDF8Z1hOfy8Wkar1d3xUPQSpVDVNXy3N+EPeGhji4IzDI7Vgbbufa2chT4 rgzyYH3s9NGG200sL9UagqN2qA4MEMNeuioyxQKKiWEqPsPkBRgxTOtof5xXWNkuoUOc zLDQ== 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 e7si14626893pgf.652.2018.04.25.17.03.57; Wed, 25 Apr 2018 17:04:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbeDZACt (ORCPT + 99 others); Wed, 25 Apr 2018 20:02:49 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:42352 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968AbeDZACs (ORCPT ); Wed, 25 Apr 2018 20:02:48 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fBUN4-0000zb-MG; Wed, 25 Apr 2018 18:02:46 -0600 Received: from [97.119.174.25] (helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fBUMp-00051c-5H; Wed, 25 Apr 2018 18:02:46 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Andrey Grodzovsky Cc: Oleg Nesterov , 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 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> <20180425171757.GA10441@redhat.com> Date: Wed, 25 Apr 2018 19:01:05 -0500 In-Reply-To: (Andrey Grodzovsky's message of "Wed, 25 Apr 2018 14:40:54 -0400") Message-ID: <874ljyu98e.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1fBUMp-00051c-5H;;;mid=<874ljyu98e.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.174.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+041djFXo9fOfCtq4Ix1QLM87FzXrbEvQ= X-SA-Exim-Connect-IP: 97.119.174.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa07.xmission.com X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01,T_TooManySym_02, T_TooManySym_03,XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_03 6+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;Andrey Grodzovsky X-Spam-Relay-Country: X-Spam-Timing: total 15022 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 2.4 (0.0%), b_tie_ro: 1.70 (0.0%), parse: 0.70 (0.0%), extract_message_metadata: 9 (0.1%), get_uri_detail_list: 0.67 (0.0%), tests_pri_-1000: 2.8 (0.0%), tests_pri_-950: 1.14 (0.0%), tests_pri_-900: 0.96 (0.0%), tests_pri_-400: 16 (0.1%), check_bayes: 15 (0.1%), b_tokenize: 4.5 (0.0%), b_tok_get_all: 5 (0.0%), b_comp_prob: 1.57 (0.0%), b_tok_touch_all: 2.2 (0.0%), b_finish: 0.53 (0.0%), tests_pri_0: 107 (0.7%), check_dkim_signature: 0.61 (0.0%), check_dkim_adsp: 3.0 (0.0%), tests_pri_500: 14880 (99.1%), poll_dns_idle: 14869 (99.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH 2/3] drm/scheduler: Don't call wait_event_killable for signaled process. X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrey Grodzovsky writes: > On 04/25/2018 01:17 PM, Oleg Nesterov wrote: >> 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? > > But this one is called for each task releasing a reference to the the file, so > not sure I see how this solves the problem. The big question is why do you need to wait during the final closing a file? The wait can be terminated so the wait does not appear to be simply a matter of correctness. Eric