Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3505259imm; Sun, 16 Sep 2018 20:39:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaH4JQtEIU6vjQyf1xz2UkkMspaQB0cS9KWGqJzncvMaQG4N2RnObylHb3vJrTQ/b7WXgW0 X-Received: by 2002:a63:8b44:: with SMTP id j65-v6mr21991823pge.325.1537155555120; Sun, 16 Sep 2018 20:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537155555; cv=none; d=google.com; s=arc-20160816; b=WfGCTz7yGYbOMomdbW3xf7pyN/Zx+kg9RD2DC8ID1ZtyOtfk2XWm4xlLLrI8SGD+8H Bg0/AJLdknQo1znGCzlgRmZ2oE9uROyJ6M6ZLM6cy6VXG20WL+bvmCcSz8avenqzD5sS 2SmtRDNMeFDspu+sups5qaS4cAG1Rl5wmk0lH1rlVKjuJCIy0U8SicMZQcRhxx5HAig2 bz7Yk0i/aWbFZYdbNk+7ZzPh3QnWTGvbRzchfW7o1yORWM+S9+Jad98glUI/kAaxYUTt 4A8oCbPviX8/y+tThijYliNKZe6KJx6F+tX/Z1l5Dbirr1zYoWCtjFYyFElspgnLr/Wu vdfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=/NAkg5r1JuV+rZjwrcr9qqx2hJCHEkr6pKMtm+F/Zuc=; b=ZEaOq/pXHbQu3yNi+FyQ13PQwF4yszW/m9DhwssFfQjWnaP8JJ3jnQ6AeQUCqxbcIo OTFEHbWsN+5z/OUL262owRq76P2qI+VNCeN8xM/hSENgIQmBLMs15o7F82wZZ3Cr/t5K Scb3cpFeXimdnb4DVAYlehlsEN+s1Y4guma6Da6bXcLEKZL+zN0c/Zmtn6IejOsEtODa cSfhN2OQRHyns6cGMdzhQLu3gmgUeAHQMblz4ymSXyXngwqKD2JMcgTH2QuRm5BJpDD3 oOYWqUvLMy+s/jC82HHNBTiAJEnxzr7fs0hGLF4YdXHzOJGD+asSzFPG7HYyTU1oiqL1 2Fqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=o170Rw1m; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s184-v6si14268865pgb.123.2018.09.16.20.39.00; Sun, 16 Sep 2018 20:39:15 -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=@microsoft.com header.s=selector1 header.b=o170Rw1m; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbeIQIZ3 (ORCPT + 99 others); Mon, 17 Sep 2018 04:25:29 -0400 Received: from mail-eopbgr710124.outbound.protection.outlook.com ([40.107.71.124]:62784 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728036AbeIQIZ2 (ORCPT ); Mon, 17 Sep 2018 04:25:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/NAkg5r1JuV+rZjwrcr9qqx2hJCHEkr6pKMtm+F/Zuc=; b=o170Rw1m0xuCmUp+s8Va1mp/C7v7CsiVjJoyEmvvooJz87eP3USBgATPTbaTQJJh4s4Dpx5dpBREGELMT6DnnJlLQjZS0q5RT4T8tYo3tRTi0LAc4NDai22lBmM7VtCfC/zieVTafMhe4Ha6mAztHyFpcB9Z5ozHagRSEzzGAWo= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0134.namprd21.prod.outlook.com (10.173.189.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.11; Mon, 17 Sep 2018 03:00:12 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::54e2:88e0:b622:b36]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::54e2:88e0:b622:b36%5]) with mapi id 15.20.1185.003; Mon, 17 Sep 2018 03:00:12 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Akinobu Mita , =?utf-8?B?U3RlZmFuIEJyw7xucw==?= , Jonathan Cameron , Jonathan Cameron , Sasha Levin Subject: [PATCH AUTOSEL 4.18 002/136] iio: adc: ina2xx: avoid kthread_stop() with stale task_struct Thread-Topic: [PATCH AUTOSEL 4.18 002/136] iio: adc: ina2xx: avoid kthread_stop() with stale task_struct Thread-Index: AQHUTjKM1KENgPTTcEeZrUZcKbHDlQ== Date: Mon, 17 Sep 2018 03:00:11 +0000 Message-ID: <20180917030006.245495-2-alexander.levin@microsoft.com> References: <20180917030006.245495-1-alexander.levin@microsoft.com> In-Reply-To: <20180917030006.245495-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR21MB0134;6:UDZmmTzXt8uY5dSPGbnuSWUDX77zyTu3wIwjm/bJeXcFR3mNqmy1FVr2M7Ac59bq/RedW/5ByWp8+qe6ZXrUw0fq9F7cu4M7vJAKrrqfb2lXdbZlPbTGqzO4slOj8JMzb66vi9CaoXTxA46PVMKoGwFcvcbTJ4hF0W0f5E+PolO2HNiY6MIvURTDecOBmCoUAmspr/cWWsOPqF6L0jP0iR7dBuzTza4pTgqNJLox8C8UeBz8IPH7YXv2jB7xxOD9k9XOvShvUV/GKaXgseZHd+MD6bJuiM+8oEpsiDBIqrgESOPPPpNIlMbeWp+2ipkCVXhBLGSKPmTFlGnJ67Xs8yiZBsqzDD9XOu/EXMvHuMco/THgIjaEmc0sVQMg01lzdsXj6zvYdh4461A9EJwENS9Ox+a1+N45OP57d7uF6EVmzNL9CGyZ1uAG0ZaJtEisfuElbGAvpONMAnrATgufUQ==;5:bUR0zkaNqUqXgSgasgl6fOvO+mHrADl2Oh12Jv8u3VW0Y3oJPLVfc4mcBpwFJoDQEMxrGK/eh9gdbGKYuvNCWN+yumDivAEysUbMRKTL3VjZwPual7dQSmLY5Jf3jZ4CcZRB22ddvfSjKmxuoGSzLC/hXKazzbC4PlXsPgbgG6A=;7:El+lILdM5KoJT8sFOhB4XA+QTdbSwAgsOZ09JPzVDKsSgT9f3HTSCGKe95GH77MEa04va9u/CqKR3V2nDTMkQ9qqSQH/RCU/XVU1lxB5I1aS4HC6xhFUh79X6YoNPSifgf9gatJVMJYOhyad+7j3SbVXG81oSv0f2jK3E8bag9+Tv9gUnP7gBvJOIEGFcIvenjGo4hH6dmsvjZQ+8ubzv4S92UCQR0uLLMbUulqE3Fn/yHeHVCamHaKhyHuS41Za x-ms-office365-filtering-correlation-id: 05f905ef-fb7a-4ea3-1e45-08d61c49af64 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:CY4PR21MB0134; x-ms-traffictypediagnostic: CY4PR21MB0134: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(85827821059158)(50582790962513)(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231355)(944501410)(52105095)(2018427008)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(201708071742011)(7699050)(76991041);SRVR:CY4PR21MB0134;BCL:0;PCL:0;RULEID:;SRVR:CY4PR21MB0134; x-forefront-prvs: 0798146F16 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(376002)(346002)(39860400002)(136003)(199004)(189003)(6506007)(10090500001)(14454004)(99286004)(76176011)(68736007)(6512007)(4326008)(25786009)(217873002)(39060400002)(107886003)(72206003)(22452003)(256004)(14444005)(36756003)(54906003)(110136005)(8676002)(6486002)(97736004)(10290500003)(6116002)(11346002)(26005)(7736002)(86612001)(5660300001)(86362001)(53936002)(316002)(486006)(476003)(2900100001)(5250100002)(105586002)(102836004)(305945005)(106356001)(66066001)(81166006)(81156014)(1076002)(2501003)(2906002)(6436002)(8936002)(446003)(478600001)(2616005)(186003)(3846002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR21MB0134;H:CY4PR21MB0776.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: IdEQYGLN/x4Zix7mKiiXKW+2GpeV+ZFRT7UUaXxACDWtkEA9PtxUnCQjuCQEqFgZ/v35PBngN8JLsgQCx43VmY3XN4pxPinkyvtwbbY6HfRPIVZKtemHzTgIMk0JaloHNY0wkfYRNnR4L7O+0kBtSLwnWo3L+U859fcwPHrVlapilTbrdbfWs8Yr65bFNdKf2MInpEaTtwT4iZ1DuKmEJrHDhpbH7iqsbOxDM5hW4cS9jyJElJ5g/Tf/yQovvdrI1eUICKVx+o1JsrIL0v7i2DZvpaKWYKUbMVzEitPcV+LnTf8zkJWODjWtFls+WhVRcgwyHIyVHkW7Kj3P1UCNBKu7IS7/UDz9cmJsTrBB6uA= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <5AFF7D9FB2738E429709F414F3CFF60C@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05f905ef-fb7a-4ea3-1e45-08d61c49af64 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2018 03:00:11.9330 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0134 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQWtpbm9idSBNaXRhIDxha2lub2J1Lm1pdGFAZ21haWwuY29tPg0KDQpbIFVwc3RyZWFt IGNvbW1pdCA3ZDZjZDIxZDgyYmFjYWIyZDE3ODZmZTVlOTg5ZTQ4MTViNzVkOWEzIF0NCg0KV2hl biB0aGUgYnVmZmVyIGlzIGVuYWJsZWQgZm9yIGluYTJ4eCBkcml2ZXIsIGEgZGVkaWNhdGVkIGt0 aHJlYWQgaXMNCmludm9rZWQgdG8gY2FwdHVyZSBtZXN1cmVtZW50IGRhdGEuICBXaGVuIHRoZSBi dWZmZXIgaXMgZGlzYWJsZWQsIHRoZQ0Ka3RocmVhZCBpcyBzdG9wcGVkLg0KDQpIb3dldmVyIGlm IHRoZSBrd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