From patchwork Mon Oct 17 06:53:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ye Bin X-Patchwork-Id: 189 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1299031wrs; Sun, 16 Oct 2022 23:33:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4kh08K0jQeZRaQrw562s/hlUDKAsUK9Aom2LVoUGBNJU0wVtrJ49nO+TtNCFhb+V9syVps X-Received: by 2002:a17:907:918e:b0:78d:b87e:7051 with SMTP id bp14-20020a170907918e00b0078db87e7051mr7630490ejb.227.1665988399114; Sun, 16 Oct 2022 23:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665988399; cv=none; d=google.com; s=arc-20160816; b=gs3MwrLDucD5IyJ5Egf/Vv5J8qTOUmkUOa4XRkXuuP5DKfPTXkyvwruNW0zEUp0Ykk O3x7DCP6ewIlL24gE0TJSIKbvAUQxfGu111SZKSdEwC3Grejbqv7QRF2b3coY93HQSKj SOZD+AcgInKd1fp+pNiI0Jqw/q7ZJAfdM4t5jccY+Dq0hv2duj5lzICSmmZ8o9w3nEaG 8o7+GjDW3tEVvwxT5c7fMuLU21WpJcwuf9LFVF1hy1nE3EOuPBcDwfmEwNe7Surhf/UT kd/9bVo2wD7ilGgUUGrXDQokkQK/3+uibusRTJqvTjlshrm19whMwHLGd6ECczAX0GK8 79Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uLMpxiPszWZRJBOcTpLQo9svbeytIyDIuAHwhrlG0gI=; b=HC1oY7B7F8Anq1JaSEPTnTlpFKfvSVhPGyd93YDDIYAvEkD6Tl3qHvdXs7Ec+RfxaN j+HWZney8tL29+zRrrBxlK4V4O6mDKO5USnj9ykQfHgGOqB8gky+kpLP0vjQ7xn/xp8C +24Rcux5dkRYvpFEqZS3VeCfyaC/16bY6ZTHEmcxmBC5CAVo6xEVwco/eVDNQcHJFbPh yxGa3d2wr8avGYWWmBaPCtyXtzn0BxXmCij0hOaYEVKn0gfzoQBIzjVITqa5TbJirFnB BSGIVuYGMCTFiVavr8mzvMxKxGCUcNSJ3RenQFRM4Ryn0WThb8Q7E2b8M9v1Z72/5U53 q60g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020aa7d3d0000000b00458be855265si7510005edr.211.2022.10.16.23.32.53; Sun, 16 Oct 2022 23:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbiJQGb3 (ORCPT + 99 others); Mon, 17 Oct 2022 02:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbiJQGbV (ORCPT ); Mon, 17 Oct 2022 02:31:21 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6B15723F; Sun, 16 Oct 2022 23:31:18 -0700 (PDT) Received: from canpemm500010.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MrRrJ4kwmzpVqZ; Mon, 17 Oct 2022 14:28:00 +0800 (CST) Received: from huawei.com (10.175.127.227) by canpemm500010.china.huawei.com (7.192.105.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 17 Oct 2022 14:31:16 +0800 From: Ye Bin To: , , , CC: , Ye Bin Subject: [PATCH -next 0/3] fix possible memleak in '__blk_trace_remove' Date: Mon, 17 Oct 2022 14:53:18 +0800 Message-ID: <20221017065321.2846017-1-yebin10@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500010.china.huawei.com (7.192.105.118) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746915451731000288?= X-GMAIL-MSGID: =?utf-8?q?1746915451731000288?= Ye Bin (3): blktrace: introduce 'blk_trace_swicth_state' helper blktrace: fix possible memleak in '__blk_trace_remove' blktrace: remove unnessary stop block trace in 'blk_trace_shutdown' kernel/trace/blktrace.c | 84 ++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 43 deletions(-)