Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2232745ybn; Thu, 26 Sep 2019 08:53:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUf2JhhJ60lo+6J4CLoA38/q3BnpuN/N9JIMhCpn8YsPymRvkGxnPSNINzdFkSJ9G+2UYE X-Received: by 2002:a17:906:1394:: with SMTP id f20mr3941336ejc.274.1569513198612; Thu, 26 Sep 2019 08:53:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569513198; cv=pass; d=google.com; s=arc-20160816; b=pESFjbQUFAjnh2jFOIR/x36DSGdk8ML0gneMxHtmzCpyZZsFOvuxBRt1gp+Jn9Th2D AehXS7Xn67CB7BInwQBsibNE/tr1JPokKL2xdLvQ34RyjshfF7dKXocg+dulysUehWOv oTZhqYEKDhcp0KXSK5yHnrmxlNFeBXmxWIYZHBGaMphRlibm2pPu6zZmWMeK2E8SiOsr GQRTgiFZDnnvNPGnw+ZTTNAZXgNYhhtLrYUTdwdCk/ND0donKuIN8+eiiwR8s4KKowJ6 0R6X/v/hPs7DQUaUT6X4AKdAcEuPiQRHFzHQgBegMuYdmb5jLcL7EvTZp2XO1wnNM+Ig r0Bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=C5pPE662d4cYkVBtb1S/px23Au+Mfs7jlkYgwse5cec=; b=I642izk4MiTlE0PGA4By+JtOov8S2QrQtZHiudoeSD8/PYe7QvpLkwyK91NWgMAcfa 013jr4KoZPtKmZemCfMt3PdSuigD/GMcRqaByF/tGAK4TTUaKn8aqFMR03SwSGiprFYl 2veHCt1Nfi/vyc6bK+AKXMPwlKvXCo/v47z+oACcvoNoe4UmPOaXBIK5ALzdM1Foaj2F L30E0tQxU0oho2tVGZ/nxoY5c1RwQL0ut5e4PD8EIgSDi+krd/qeX3/9AoPpLfAzqqNs mzduUa6K6+2L6v8OvXwlIT+G/usQwDpyueUtjskSc2YrNWMyhjY8ydmcPVkzMFXh4XkD sVtg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=jcH8AASk; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 gz11si1254425ejb.341.2019.09.26.08.52.54; Thu, 26 Sep 2019 08:53:18 -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=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=jcH8AASk; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 S1727393AbfIZPsj (ORCPT + 99 others); Thu, 26 Sep 2019 11:48:39 -0400 Received: from mail-eopbgr710061.outbound.protection.outlook.com ([40.107.71.61]:44672 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726029AbfIZPsi (ORCPT ); Thu, 26 Sep 2019 11:48:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fBqB/QmTXqaxxhTyUzhp31N2sPfSyjWfcFRCzZsFgpazCwcABB0ZAjfSDUBJZFKq8VQ/e9r+mwD9Z1/ksaZvEPqq5IRwsmjj6XFPirBVYY2wbwnXykFH+3/JvuATP8I9FCIMmMg/vaIX5P1t6ALo/SgmXHZLbROrEZ9UgDWGU8gRmqqwg1LGLEkdyCrrmYLNw0/fv6ZRHjDa+EwA3B4DAMAWP8V4XZLywJti9qjEf6LOiRo5xvo2K+34Dntgr/8pFTEVOKEFc9cAxZMg5aqFBO8UEJdzLQf5cNCOrChhY1rxH3b4kM6CFBjJ550/fTXwfPyEswULp98FAw3rYaVLeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C5pPE662d4cYkVBtb1S/px23Au+Mfs7jlkYgwse5cec=; b=PtuFLFgw8eMkXqaaJ8pow49Hg3vxxbBS83cxKuLMxZC0SCh45XwRgxOHsqPnvwoAdi6ex0K7RGcQ1q+0PlgwLSIj4CmWrbILj1LlUu7jVi4bGbZPZee2odxGVyv882CrnyXx16Uh6gGdT0cynYGR9VtoY6hRzGy+UE32M4AWtSw5Q3enK1tZMq/jOfqXiCM4zZ+WgIKww/PteEXf4Y8oalofcSWqYKK8sHdrTkqFuCqB+RPoAoVMPSdWyUHZxnoGysZKv/LprPjuKBbgVfQs/9NjQdbuUe9vf9vMjVo3AD5Mxj4QbQlFnM3K27jQcEcHfm/r5GNu2PN5Nz87Uz+mhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C5pPE662d4cYkVBtb1S/px23Au+Mfs7jlkYgwse5cec=; b=jcH8AASk3Xv4grS+4q3U/Gsw4z4xUipErRapTm3L4i8r/ogkUVoOgNxJXi9VybPzVvyw3Dz2vxQsmnzuVw8El+nT44VeXv4adQFNKu1GhJTZjWlZw6+zNAJ5luK6oCCcxssnYEhLa7cI2AcZFRpGvocIQlSDCo0DXvbHhS4XOPc= Received: from CY4PR12MB1446.namprd12.prod.outlook.com (10.172.72.19) by CY4PR12MB1910.namprd12.prod.outlook.com (10.175.82.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.20; Thu, 26 Sep 2019 15:48:35 +0000 Received: from CY4PR12MB1446.namprd12.prod.outlook.com ([fe80::1dbd:eba0:5fcf:c9f3]) by CY4PR12MB1446.namprd12.prod.outlook.com ([fe80::1dbd:eba0:5fcf:c9f3%6]) with mapi id 15.20.2284.028; Thu, 26 Sep 2019 15:48:35 +0000 From: "Grodzovsky, Andrey" To: Steven Price , Daniel Vetter , David Airlie , "Koenig, Christian" CC: "Deucher, Alexander" , Nayan Deshmukh , Sharat Masetty , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Subject: Re: [PATCH v4] drm: Don't free jobs in wait_event_interruptible() Thread-Topic: [PATCH v4] drm: Don't free jobs in wait_event_interruptible() Thread-Index: AQHVdHUKP1r0Rq5tqEO46l3IKyYg76c+EUmAgAACcYCAAAcPgA== Date: Thu, 26 Sep 2019 15:48:35 +0000 Message-ID: References: <20190926141630.14258-1-steven.price@arm.com> <48214f02-e853-015f-55cc-397c7b06cb5d@arm.com> In-Reply-To: <48214f02-e853-015f-55cc-397c7b06cb5d@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: YTOPR0101CA0014.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:15::27) To CY4PR12MB1446.namprd12.prod.outlook.com (2603:10b6:910:10::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Andrey.Grodzovsky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.55.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 75324949-7c2b-48fd-7cf3-08d74298fd77 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:CY4PR12MB1910; x-ms-traffictypediagnostic: CY4PR12MB1910: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:336; x-forefront-prvs: 0172F0EF77 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(346002)(39860400002)(366004)(376002)(136003)(189003)(199004)(5660300002)(229853002)(31686004)(110136005)(6486002)(86362001)(6436002)(76176011)(31696002)(478600001)(14454004)(52116002)(66066001)(71190400001)(25786009)(71200400001)(99286004)(6512007)(11346002)(446003)(14444005)(256004)(6506007)(386003)(53546011)(4326008)(66946007)(66476007)(66556008)(64756008)(66446008)(102836004)(6246003)(81166006)(26005)(81156014)(186003)(486006)(2616005)(36756003)(8676002)(2906002)(54906003)(476003)(6636002)(8936002)(6116002)(3846002)(305945005)(316002)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1910;H:CY4PR12MB1446.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: WDQyDyFRn+tcPiCu1u+SC7xV7HXvaaXPppE2cpRfE9ryan0t3nUAPhvFRyRX68tdWujxcagthy6GBY7UGzgcsZt6E6sBlqR/jij8WquvJdGUBgohuXoxHdQdqpgiX4vBBUiiDX//U1+U/MVaxCXrOpxoYu2sN700VLCDPRhadKs5XPpkG9cCvXqw+VYNWWWhfvsRtn4e4HRZkrZ5qaVou9pMbLEWBot76mq4oSZveOqT+sxyI4os0dqv0uUIA+iMfqMcbC5xRllt+29pN6UXuPDY5JX7KbPLXf2/cE9L6jXLr3tRDS3lDXKmVCORZqF1NaEB0w/vi1yTcgq1BqWG6clbJGRJuBEx5RoJm3miLG/ZoVNhkBZdKJ6No8FdL+FV5HP+pXo56wEGCHTeJAs3L081TVpaXQOsypE4yePq100= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75324949-7c2b-48fd-7cf3-08d74298fd77 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2019 15:48:35.3252 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qrTqUQC3Sd9/McVlX12zSCPqrS2LAfKeW07+3za5+iXoXL57tGymI3zlzCe/9YfXCbjfDvzx+bOoXtMKOt/TYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1910 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQpPbiA5LzI2LzE5IDExOjIzIEFNLCBTdGV2ZW4gUHJpY2Ugd3JvdGU6DQo+IE9uIDI2LzA5LzIw MTkgMTY6MTQsIEdyb2R6b3Zza3ksIEFuZHJleSB3cm90ZToNCj4+IE9uIDkvMjYvMTkgMTA6MTYg QU0sIFN0ZXZlbiBQcmljZSB3cm90ZToNCj4+PiBkcm1fc2NoZWRfY2xlYW51cF9qb2JzKCkgYXR0 ZW1wdHMgdG8gZnJlZSBmaW5pc2hlZCBqb2JzLCBob3dldmVyIGJlY2F1c2UNCj4+PiBpdCBpcyBj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