Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B4E5C636CC for ; Thu, 16 Feb 2023 13:40:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbjBPNkO (ORCPT ); Thu, 16 Feb 2023 08:40:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbjBPNkM (ORCPT ); Thu, 16 Feb 2023 08:40:12 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F103D46D6D; Thu, 16 Feb 2023 05:40:10 -0800 (PST) Received: from lhrpeml500006.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PHbYH0JbBz67Zjl; Thu, 16 Feb 2023 21:35:31 +0800 (CST) Received: from lhrpeml500006.china.huawei.com (7.191.161.198) by lhrpeml500006.china.huawei.com (7.191.161.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 16 Feb 2023 13:40:08 +0000 Received: from lhrpeml500006.china.huawei.com ([7.191.161.198]) by lhrpeml500006.china.huawei.com ([7.191.161.198]) with mapi id 15.01.2507.017; Thu, 16 Feb 2023 13:40:08 +0000 From: Shiju Jose To: Linux regressions mailing list , "rostedt@goodmis.org" CC: "mhiramat@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-trace-kernel@vger.kernel.org" , tanxiaofei , Jonathan Cameron , Linuxarm , "mchehab@kernel.org" , "linux-edac@vger.kernel.org" Subject: RE: [RFC PATCH V2 1/1] rasdaemon: Fix poll() on per_cpu trace_pipe_raw blocks indefinitely Thread-Topic: [RFC PATCH V2 1/1] rasdaemon: Fix poll() on per_cpu trace_pipe_raw blocks indefinitely Thread-Index: AQHZOM+ccQhNZ2anGEyRrj5aM7KqRq7Rh00AgAAcTMA= Date: Thu, 16 Feb 2023 13:40:08 +0000 Message-ID: <1e759e44f5e64b4e99096afd9e89b6dc@huawei.com> References: <20230204193345.842-1-shiju.jose@huawei.com> <286293b4-5ae6-1348-9d69-7049ef5adf35@leemhuis.info> In-Reply-To: <286293b4-5ae6-1348-9d69-7049ef5adf35@leemhuis.info> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.195.245.146] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGVsbG8sDQoNCj4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPkZyb206IExpbnV4IHJlZ3Jl c3Npb24gdHJhY2tpbmcgKFRob3JzdGVuIExlZW1odWlzKQ0KPjxyZWdyZXNzaW9uc0BsZWVtaHVp cy5pbmZvPg0KPlNlbnQ6IDE2IEZlYnJ1YXJ5IDIwMjMgMTE6NDgNCj5Ubzogcm9zdGVkdEBnb29k bWlzLm9yZw0KPkNjOiBtaGlyYW1hdEBrZXJuZWwub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJu ZWwub3JnOyBsaW51eC10cmFjZS0NCj5rZXJuZWxAdmdlci5rZXJuZWwub3JnOyB0YW54aWFvZmVp IDx0YW54aWFvZmVpQGh1YXdlaS5jb20+OyBKb25hdGhhbg0KPkNhbWVyb24gPGpvbmF0aGFuLmNh bWVyb25AaHVhd2VpLmNvbT47IExpbnV4YXJtDQo+PGxpbnV4YXJtQGh1YXdlaS5jb20+OyBMaW51 eCBrZXJuZWwgcmVncmVzc2lvbnMgbGlzdA0KPjxyZWdyZXNzaW9uc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