Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 22BC7D267 for ; Wed, 8 Nov 2023 07:26:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="cBMGXxEf" Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A27751A1; Tue, 7 Nov 2023 23:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YDuPeCwVmjpThnF/XEgOD0uqKSwNKZwyjOl5wFv5X1Y=; b=cBMGXxEfWEMEzrjrcplylVjz4A dWs/G9bBtygirluW65Nn8lBcIrqrm8VR+XH0kdj7XcKVgQKQZUwTYRynbu2rXA2+v7hS3x8hePLfQ zrT64XuAMuWT2vrgBl8p2RKvxPFUW80hiPCXjt7TPDRy0WVTt45r8WDCNh8YrPFgI4e0wTVWlieg+ oOfmQ9ODFZY39HlIUP/3VEdQxMo0qfuGI+3pqKe6CZB+DZzOB0GYXVdrDbHNciZjqp3NmAErUkOrt Tguw0ouiqsSBKzomxGuIriqVzkerLLznHgp/SkZ7AfvSCnR2flEf+pbyqVfZl+2xgtT6qT52cWnG1 Xa3LoORQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r0cxI-003Awz-2x; Wed, 08 Nov 2023 07:26:28 +0000 Date: Tue, 7 Nov 2023 23:26:28 -0800 From: Christoph Hellwig To: Edward Adam Davis Cc: bvanassche@acm.org, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+fcc47ba2476570cbbeb0@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH V2] blk-mq: fix warning in blk_mq_start_request Message-ID: References: <25a94b23-b42b-49fc-a1c8-3e635f536aae@acm.org> 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-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, Nov 08, 2023 at 02:59:40PM +0800, Edward Adam Davis wrote: > Before call queue_rq(), initialize rq->state to MQ_RQ_IDLE. Request should never be able to be allocated if they aren't in MQ_RQ_IDLE. So papering over it here is not the right fix, we need to figure out got it ends up being marked free in the bitmap while not idle.