From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9E1537FF79 for ; Tue, 13 Jan 2026 08:30:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768293056; cv=none; b=iIhtUgcBo/wRoea0/OLOZkaVjK534j4X7+hsRlrikPS/4TdLU79AW5+E0MebBpvoeLGKmsJVw6DueWoqQqGwuXg/f7p+zDfd/hoQzak9G7paAk1aHEIH8Vq8fzkbRieoqbupaVP6y/RhQIAew3XbrBm5J4yyA/AqhJpRWJxKKQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768293056; c=relaxed/simple; bh=Pkew2NY+RN8ybiFm5bfLBCcke4L7RO4YuZmnMwl8JaE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fyjWkJFX/CjQidapvq8aIGGlmwB/k6jCUkllAHI45xHZ/XEHKoCROooHsBylm7vUkPbCjRaNTSmk1I/ZlZRxFho0sl/c4g//rKNU+/4YdFE3yKi3byR1Di/Bi+AcXj881h8SXPfMyq19qYUtsqd2gDRy1MReq8t5Rh522+i486c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=uWrUHXxk; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uWrUHXxk" Date: Tue, 13 Jan 2026 03:30:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1768293053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=so2RvNMlsxrWq7StUEBpmOy2EOmE32uBMjS/rIHy5EQ=; b=uWrUHXxkbd29Zs71sE2XIgAcXzakFA2GZWvFrvXUbt/wjMH4FVUk6AFbuPnQyo/Kc12xfz a/Y6gNY+QmqLJ8vD+jDEZwQk8s7NnSYjayulJucA1tPO60uilXEUGdjFrOC7kdWwXXfMhM A7KBzGFB+hsyDmCxawYeqkV3j4UIp5g= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Christoph Hellwig Cc: colyli@fnnas.com, axboe@kernel.dk, linux-block@vger.kernel.org, linux-bcache@vger.kernel.org, Shida Zhang Subject: Re: [PATCH] Revert "bcache: fix improper use of bi_end_io" Message-ID: References: <20260113060940.46489-1-colyli@fnnas.com> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Tue, Jan 13, 2026 at 12:07:54AM -0800, Christoph Hellwig wrote: > On Tue, Jan 13, 2026 at 02:09:39PM +0800, colyli@fnnas.com wrote: > > From: Coly Li > > > > This reverts commit 53280e398471f0bddbb17b798a63d41264651325. > > > > The above commit tries to address the race in bio chain handling, > > but it seems in detached_dev_end_io() simply using bio_endio() to > > replace bio->bi_end_io() may introduce potential regression. > > > > This patch revert the commit, let's wait for better fix from Shida. > > That's a pretty vague commit message for reverting a clear API > violation that has caused trouble. What is the story here? Christoph, you can't call bio_endio() on the same bio twice. You should know this. Calling a bare bi_end_io function is the correct thing to do when we're getting called from bio_endio().