Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3497947imm; Sun, 16 Sep 2018 20:27:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYooVYHwJ/CIf1D5QXxPuA9aLXKPDHuuoJEGDNNxOCjj6Yf6FXzxJsPTRJOuSyn3hiANXdB X-Received: by 2002:a63:cf09:: with SMTP id j9-v6mr21208439pgg.195.1537154838446; Sun, 16 Sep 2018 20:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537154838; cv=none; d=google.com; s=arc-20160816; b=Xs29udEmF1LuYFPqWMrIwvpteGSOczrWNCGghUchQuYUbe+ZHYBXVNn+cDTi9cOqyP 2BAk33XS5t16ITXAx+0ugJGBEY5NAlAtoRnZmTXxVlpqd15z+WPoVy6wWfK1G2mDryYB yXPtjfaeRRkOjY+qek0D7LT/QYNKG99CdurfBnXn0rnUg0C6nnSs2v5HY26k+hj3ORqZ qM+oIDQEK4T3hOOtHLCaz/8cKan1NA27vaOOdXBroPVFSB2fQxz8sC4GkiBijmmF3K8P Yqz3ysfpOwts0mBlzAo3olMBWPYH9/a3M3Dqu5el9hSnocqowULLLfn+kMb1Z2ABJlqU 7MIQ== 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=EKM1/2Vvh0x+gCeI0/5ZlUJC3jOgA7CPEFkMIrD1rEE=; b=xj6ZLQwXZtLAMWlCqOonisp7Oz9y+kdjFleM4ojnlOkSVa1YST1aqRpCIuXHRJoZAY 5wktRU28eXSX004Fvfxadb/O4J/lsyVJmfYybt2jz3m1SnnT7zZexGAFBtH2qD5qH+Yz n9IT2wItxMzbWDY1BOXER3/ro5gqTkaq/wMJUn9NjOIf2k8Nc9a+NGPbYCmBuKrnTr5N UQXqAd9jkL8VPRMxB44QTMoyl5KSs5yq35+FJtaXjHTVhcXJUINJfzIQ0sGgDTMz/txQ /JXwERpZhT1R5Szx4WhHLcaYyRpzSwQaNRBTR9ODNE6BvYwWnNILeT2fHt2qRYE3F+Do 6rew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=EO10syi4; 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 e12-v6si13957572pls.372.2018.09.16.20.27.03; Sun, 16 Sep 2018 20:27: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=@microsoft.com header.s=selector1 header.b=EO10syi4; 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 S1729830AbeIQI2u (ORCPT + 99 others); Mon, 17 Sep 2018 04:28:50 -0400 Received: from mail-dm3nam03on0101.outbound.protection.outlook.com ([104.47.41.101]:50080 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729065AbeIQI2u (ORCPT ); Mon, 17 Sep 2018 04:28:50 -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=EKM1/2Vvh0x+gCeI0/5ZlUJC3jOgA7CPEFkMIrD1rEE=; b=EO10syi4/C/G26idIkk5x07vZweQiZvUJmFjH6Z08wp3IDkYd4lP8jlB2G1KILs/5MLEXNvMsNFdsE1l6orv6rbUxLAJfA6ltn0c3m/ggd5AU6KcP+EAivkv1GIUuWKlg383bftFZ0epMUvRYR6ZZoq18g18Vz32zH7CMeVa4UU= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0855.namprd21.prod.outlook.com (10.173.192.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.4; Mon, 17 Sep 2018 03:03:27 +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:03:27 +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.14 02/87] iio: adc: ina2xx: avoid kthread_stop() with stale task_struct Thread-Topic: [PATCH AUTOSEL 4.14 02/87] iio: adc: ina2xx: avoid kthread_stop() with stale task_struct Thread-Index: AQHUTjLcLbEZf+7HI0GCxtS8VvDmGw== Date: Mon, 17 Sep 2018 03:02:25 +0000 Message-ID: <20180917030220.245686-2-alexander.levin@microsoft.com> References: <20180917030220.245686-1-alexander.levin@microsoft.com> In-Reply-To: <20180917030220.245686-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;CY4PR21MB0855;6:i5ZZgIRcEKxiIiCvHLSoklsxRnjyoSptc9+CuYNdnJC4SAdKvo4SXNNXBgU+sZFaSeZb2lvu3WJMZULJI1xNoNJL2/4GVs5urW2aRymo3e64+1Xjr7Yce4EP1lRPDOQB/8NJzzZHJWWU/md54+wtINvg5HEN8gnm6zEMxMaTSoteOeiAQUHOwsx98PIwDRTpzWLS3QADhVPzlTpOjd6n7TKdYppXuNYAp1pFn3LfhfZ6k3YCxc9VpX19sMjZfK3e5A74VmtqFiTTkgH7zFZ/GCTYxhvH5gbJJqpcpN8RRd40EnlZDvS4sdUSeGzIX7UXj0Ws8+5m/bYLdloOsvbEBud/3c7F4TpgJRccDeXxLPi46gWWOPaMy6e6nrQ5o1vjlNayM8l3Ajxrj7rGSl9hAiLe7akcNXgU9hsGsoG0Tmm/KnIzPwfsVxEkbuphkG2KvcN3NN9JjhDYiWfjqCKRTw==;5:LdFJw7O6GVTr+5wxPXlCaRLkO4TQ+gjNeehs5nPVSZ4+YIl3LuOU+MlMvowIl3msyGRLzU2NBx1p5467xNFYBqSvP9yYmX+1QecbU0S/72agD7WtfHdx0/NxHQ1H1XuIvnISlWyhRg9b1no9KsYffxyRWHlr+s+pEPzWhB+9c+g=;7:e/Umt/BwqhZf31BzH4NlcadEYIO9Ms8J63ASSZiLTLcsHKDiHv1A5ztJXR8XPgS/nMBxmfs2mzELpHj5KhZ6GQ0R0VmzGVprfozMrnWMSYtOxNGxAtGrngk8VFxVRoekjXwYYfQf9pHl0oiA5cPy9mMlTk6SjdAYidKJygO+sSH5VKFUbtlvEW45O2l0gaKSY+XnQJXsG+L6zIPECUkdHjH5E92G5nl6qzm/TURjJNTQ0FTUE6El39zIg9LF+qL/ x-ms-office365-filtering-correlation-id: 6c9bc6f3-e473-4e18-8799-08d61c4a2421 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:CY4PR21MB0855; x-ms-traffictypediagnostic: CY4PR21MB0855: 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)(5005006)(8121501046)(3002001)(3231355)(944501410)(52105095)(2018427008)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699050)(76991041);SRVR:CY4PR21MB0855;BCL:0;PCL:0;RULEID:;SRVR:CY4PR21MB0855; x-forefront-prvs: 0798146F16 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(376002)(396003)(136003)(366004)(199004)(189003)(6436002)(99286004)(7736002)(110136005)(54906003)(97736004)(5660300001)(66066001)(446003)(72206003)(76176011)(86362001)(86612001)(81166006)(81156014)(2906002)(478600001)(305945005)(68736007)(105586002)(2616005)(106356001)(476003)(11346002)(22452003)(6486002)(10090500001)(10290500003)(8676002)(39060400002)(36756003)(6346003)(6116002)(6506007)(3846002)(102836004)(107886003)(6512007)(1076002)(25786009)(217873002)(4326008)(14454004)(26005)(256004)(14444005)(486006)(186003)(316002)(2900100001)(8936002)(53936002)(5250100002)(2501003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR21MB0855;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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: 4jCS1zwclY25BsqjGhbqS5fTlXInLasXnwKKQRS4NYG2vJS8RF2P9cwsi7VwJsm15MSRvbXotkMcISGqlCghL0ezekEQES7F8agJ6vui7YP/dWSefaDwe4CETYSsNo2FHsF0fKCi79zCQMzYRwC4H1X20bWquwQtekAkZEIBSwRCWxykvQ4gRhsLfWayOfhA/hXhYLQzrOsLqqdBGX+bCwTyBy76TNueTi7hsUYxUZYQKSc4YqQUuB+4FdWUs2CHq5ptq0wmS7YBomyTu2Mh0rbQB5NRteZEjp0qQaLvgjBxT9vxAjEITjGXDy8jUgkEIIGyi43iV2ATxamkxsBp2VUpNLIQ7A96ldlRXTiw1vk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c9bc6f3-e473-4e18-8799-08d61c4a2421 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2018 03:02:25.5564 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0855 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQWtpbm9idSBNaXRhIDxha2lub2J1Lm1pdGFAZ21haWwuY29tPg0KDQpbIFVwc3RyZWFt IGNvbW1pdCA3ZDZjZDIxZDgyYmFjYWIyZDE3ODZmZTVlOTg5ZTQ4MTViNzVkOWEzIF0NCg0KV2hl biB0aGUgYnVmZmVyIGlzIGVuYWJsZWQgZm9yIGluYTJ4eCBkcml2ZXIsIGEgZGVkaWNhdGVkIGt0 aHJlYWQgaXMNCmludm9rZWQgdG8gY2FwdHVyZSBtZXN1cmVtZW50IGRhdGEuICBXaGVuIHRoZSBi dWZmZXIgaXMgZGlzYWJsZWQsIHRoZQ0Ka3RocmVhZCBpcyBzdG9wcGVkLg0KDQpIb3dldmVyIGlm IHRoZSBrdGhyZWFkIGdldHMgcmVnaXN0ZXIgYWNjZXNzIGVycm9ycywgaXQgaW1t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