Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp276489pxu; Wed, 2 Dec 2020 23:01:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhVnQ60e/EnGYShibDLWcMJla3SuSCrr3UjT52XJjiZ2zvfutJOHrOCT2KfsOBGten4e6H X-Received: by 2002:a17:907:3f9e:: with SMTP id hr30mr1286994ejc.258.1606978876383; Wed, 02 Dec 2020 23:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606978876; cv=none; d=google.com; s=arc-20160816; b=BGjMH3CBYua9lAWa4RnHV+IdVp8xCbZXqFf5k9U8Flo38MpL8l8ek4c7DfgwWlTF0f XEQZQ1Fla7xjyMMhscDU+4EasVumKWYE68ZLkPt+LErBV2M7uS6umGixd7KIJPGntKi/ RJvC60gQ7JceBiQaz4XPflwJG0wyatrd6RTM5ml2Rct58OrkOK7xQBC1t55VWnswfFrs G1v0etBRArqHwfGDMG8fdzO1gt6Xz2/iorCJuDUgyhTJ9GbpO8PVw8BLgi/1TyWVRm3C R1anG/35guqD9E7KuYX/EzcWg2rME0p8SGS4qy+6FbTe0s+xJ1jQF6dz/Lqr+LJEDakP T7QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=WUiJtJin8HPdVOH3TBI1lxIe6cXdcdPSGR+6JSUQCw8=; b=PGpHOw7sfZRgRIetmHaRXtcFBkYPn0RAp0372Mguf4mbPcRn7v9ykRAMVl83IgwvST IrimrDRK29JuFkx4kgR0Naa81zSxYNVvP+HiyrW2BJqAHBYmpwquFFNQd98IFErGZ2yg ol2JMY6zwmFJb63HFQVL0+ahP7y+l8bD3KEZkDbpdj2EC0p/KhQoPBLYi0Ecak+LQ/I3 Lk4ioDwmxKunhgcfJgYmA5VNX1jJu5jfxWg3wmmOSCS0SnW/vK77LmtYU1m8xxkWSWpA hLkzhhERybYa3Ojp78mIjeIyup80qg84hCjJku18oqeHhbUK0OECy9eRerQ6mD45Gy2R 3JNQ== 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 r10si591380ejg.233.2020.12.02.23.00.53; Wed, 02 Dec 2020 23:01:16 -0800 (PST) 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 S1729836AbgLCG5b (ORCPT + 99 others); Thu, 3 Dec 2020 01:57:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:52118 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgLCG5b (ORCPT ); Thu, 3 Dec 2020 01:57:31 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6A023ABE9; Thu, 3 Dec 2020 06:56:49 +0000 (UTC) To: Yi Li Cc: Yi Li , kent.overstreet@gmail.com, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org, Guo Chao References: <20201130112137.587437-1-yili@winhong.com> From: Coly Li Subject: Re: [PATCH] bcache: fix panic due to cache_set is null Message-ID: <79fde596-254a-510c-547a-b1525985de9d@suse.de> Date: Thu, 3 Dec 2020 14:56:45 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/3/20 2:25 PM, Yi Li wrote: >> On 12/1/20 12:35 PM, Yi Li wrote: >>> sorry, This patch will cause deadlock, i will check and redo it. >> >> Can you try latest upstream kernel firstly ? Before spending more time >> on the fix. >> > > This issue just happened three times (xenserver7.5 dom0 kernel) on the > same machine and cannot reproduce it now. and have not reproduce it > using the lastest uptream kernel. > Hmm, this is something very probably that I am not able to help. It seems the kernel is a third-part maintained Linux v4.4 based kernel + bcache backport, which is out of my view. If similar problem happens on latest upstream kernel, or at least v5.8+ kernel, I can help to take a look. >> If I remember correctly, when cancel_writeback_rate_update_dwork() is >> not timed out, the cache set memory won't be freed before the >> writeback_rate_update worker terminates. It is possible that I miss >> something in the code, but I suggest to test with a kernel after v5.3, >> and better a v5.8+ kernel. >> >> Coly Li >> > Thanks. > > it is confused that why writeback_rate_update worker run again after > cancel_delayed_work_sync( kernel log telled). > [snipped] Coly Li