From patchwork Wed Apr 4 13:22:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 10322625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C34060318 for ; Wed, 4 Apr 2018 13:22:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B8E628E8F for ; Wed, 4 Apr 2018 13:22:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FB9528E9B; Wed, 4 Apr 2018 13:22:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6F5228E8F for ; Wed, 4 Apr 2018 13:22:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751213AbeDDNWQ (ORCPT ); Wed, 4 Apr 2018 09:22:16 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:40454 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbeDDNWP (ORCPT ); Wed, 4 Apr 2018 09:22:15 -0400 Received: by mail-wr0-f196.google.com with SMTP id n2so19307877wrj.7 for ; Wed, 04 Apr 2018 06:22:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WT+1OwJkQKOqe6aI1+Cu1QeVlbXCr6dpID3Fhs2K8Ww=; b=LGXp9wJqJIM455LaWc9jUTybrpe4Q8NvuUvwwEYPeN2xcMMsvx1OHLobZn9n9shw8G 8Szuvd+wkZnRR22O2nto6iA5TQkcqjWW8OMBrY3swnyYj1++XZJ3UsBRnMQHCOmDJHYo iqoL4NFA62Ve1C/VvtS9x0z68vAGHz0ELqXW4rI2iClcXon4Hpsso6Qvo03nazk5PORx fY7dQ3Fl5hZ3gNMwtZSB8NIf47gmQhwGeZrp2oFC8zZpc5J8+lRb9bbjKxqGnGkQWfvo 67reasTVLKdC+1WmuXsyqE/7yNJ7i+uautH2FN94twP1rZCxopQEOVxIWxa2zlhp9ypg DE3g== X-Gm-Message-State: AElRT7EpmWp/67bpDwBubo2P1o7Uz2dD8yKKcAuQP+8hm2twvbAVyaJX jC59qGhcCvghc3ANl1WhWalhIXnE X-Google-Smtp-Source: AIpwx4/qnR6Ut0VKpzHW5xNwAR/VcSQFe6/1YdbPQy3vt4f64Mp5O9s2kkNiwur5bKoQTYV2cVoQEg== X-Received: by 10.223.210.76 with SMTP id o12mr13358268wri.93.1522848134471; Wed, 04 Apr 2018 06:22:14 -0700 (PDT) Received: from [192.168.64.169] (bzq-219-42-90.isdn.bezeqint.net. [62.219.42.90]) by smtp.gmail.com with ESMTPSA id j4sm5820655wrd.53.2018.04.04.06.22.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 06:22:13 -0700 (PDT) Subject: Re: BUG at IP: blk_mq_get_request+0x23e/0x390 on 4.16.0-rc7 To: Yi Zhang , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org Cc: Ming Lei References: <10632862.17524551.1522402353418.JavaMail.zimbra@redhat.com> From: Sagi Grimberg Message-ID: <682acdbe-7624-14d6-36e0-e2dd4c6b771f@grimberg.me> Date: Wed, 4 Apr 2018 16:22:12 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <10632862.17524551.1522402353418.JavaMail.zimbra@redhat.com> Content-Language: en-US Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 03/30/2018 12:32 PM, Yi Zhang wrote: > Hello > I got this kernel BUG on 4.16.0-rc7, here is the reproducer and log, let me know if you need more info, thanks. > > Reproducer: > 1. setup target > #nvmetcli restore /etc/rdma.json > 2. connect target on host > #nvme connect-all -t rdma -a $IP -s 4420during my NVMeoF RDMA testing > 3. do fio background on host > #fio -filename=/dev/nvme0n1 -iodepth=1 -thread -rw=randwrite -ioengine=psync -bssplit=5k/10:9k/10:13k/10:17k/10:21k/10:25k/10:29k/10:33k/10:37k/10:41k/10 -bs_unaligned -runtime=180 -size=-group_reporting -name=mytest -numjobs=60 & > 4. offline cpu on host > #echo 0 > /sys/devices/system/cpu/cpu1/online > #echo 0 > /sys/devices/system/cpu/cpu2/online > #echo 0 > /sys/devices/system/cpu/cpu3/online > 5. clear target > #nvmetcli clear > 6. restore target > #nvmetcli restore /etc/rdma.json > 7. check console log on host Hi Yi, Does this happen with this applied? --- -- diff --git a/block/blk-mq-rdma.c b/block/blk-mq-rdma.c index 996167f1de18..b89da55e8aaa 100644 --- a/block/blk-mq-rdma.c +++ b/block/blk-mq-rdma.c @@ -35,6 +35,8 @@ int blk_mq_rdma_map_queues(struct blk_mq_tag_set *set, const struct cpumask *mask; unsigned int queue, cpu; + goto fallback; + for (queue = 0; queue < set->nr_hw_queues; queue++) { mask = ib_get_vector_affinity(dev, first_vec + queue); if (!mask)