From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B219C4332F for ; Wed, 8 Nov 2023 07:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234528AbjKHH0e (ORCPT ); Wed, 8 Nov 2023 02:26:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbjKHH0c (ORCPT ); Wed, 8 Nov 2023 02:26:32 -0500 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> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.