Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4530533pxf; Tue, 30 Mar 2021 09:57:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFFE5WCXyUTV8FeGbxVW+iV05fRxYQYdz5BVp2yKTrVXVjpN0NR2/yCWd3pdC+ABMPwRVc X-Received: by 2002:a17:906:3643:: with SMTP id r3mr33410325ejb.527.1617123452153; Tue, 30 Mar 2021 09:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617123452; cv=none; d=google.com; s=arc-20160816; b=pOcEYmdSKSCzQXZWL01XYTbU5BStruOlDeG8DqGakkCXxXWwRYpbMMwAQGoKESOexg qdUX0LrrhwwzZK0UKkwfECjzi0fQE6tJfwnxsnSyFnPqjfYdYWYXyAGVHSlspR2D8EeH nNr7t0N2AUys9NkGdneCy2z4x+kr0U9F89ZEYehoHYhxgvPf06ntBD6/ItTQRg5Ey2I1 xqZETGX+LS9imDv4qeiWBnErJKXIofM87jDCXAbN0ACf2lNZ06jqlg5ImpSZbfSmsh55 /8iawCMn3qr+Qd242rWqFBOULg1AUsuXIWF0twk9rvGNysBMxTd+P/6JwPccXFLChUZf MEtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=b1G3qNdiOIMYHEBY7oHA4wvU1cALNphujYIz8WaA6O8=; b=VH2OwcHb8TbQz7AE2hvGe54UqxbzLEWZ0jyN/kW6JN9ww5v85t9nHivdGdf725vYAR 8cnZJKMX2mZqCgRX4RmaicJIZrVffClX1KbJdMyfjxUNFfN/qmAwhiOfaj07dzgCcscr UKbxJ/sJvUQ1t+PpdH4QdMEMMBzkYBi5SVG6zU4wQH+bG5LU/U0ASYnC74pAkeGbhECn fdAVwV2ENmj71VJxxItCnSVQpkQ0TcConRCX33VeZHxUreMNwP+gYkPNIZ7GeHjCLbDJ 2V+bDPf8ScQu+tcoAUYtiK93mtMcS1yRkkDFzuhUbJfn8tkUbLmtZudPEVEEf6DUKE1Z AGNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k15si15503938eji.582.2021.03.30.09.57.09; Tue, 30 Mar 2021 09:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232286AbhC3Qxx (ORCPT + 99 others); Tue, 30 Mar 2021 12:53:53 -0400 Received: from verein.lst.de ([213.95.11.211]:59758 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232246AbhC3Qxc (ORCPT ); Tue, 30 Mar 2021 12:53:32 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 8C3BC68B02; Tue, 30 Mar 2021 18:53:30 +0200 (CEST) Date: Tue, 30 Mar 2021 18:53:30 +0200 From: Christoph Hellwig To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] block: shutdown blktrace in case of fatal signal pending Message-ID: <20210330165330.GA13829@lst.de> References: <20210323081440.81343-1-ming.lei@redhat.com> <20210323081440.81343-2-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210323081440.81343-2-ming.lei@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 04:14:39PM +0800, Ming Lei wrote: > blktrace may allocate lots of memory, if the process is terminated > by user or OOM, we need to provide one chance to remove the trace > buffer, otherwise memory leak may be caused. > > Fix the issue by shutdown blktrace in case of task exiting in > blkdev_close(). > > Signed-off-by: Ming Lei This just seems weird. blktrace has no relationship to open block device instances.