Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp522214imm; Wed, 1 Aug 2018 00:22:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfqjFQ1N/zJ3K1wwhiFhR/DD3AkJdQ37ePj21q9zFSdxuDvX8G2fhvNeZSyBGR6KHEDX9DD X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr1207604pli.309.1533108131025; Wed, 01 Aug 2018 00:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533108131; cv=none; d=google.com; s=arc-20160816; b=tm1uOIqeaGcOI2vQgsVWiQitZ20KOxI53DbQ2mYWzL3QdhU+1PCYC3GqbLgo63oI8I 4D1YJZUC33ugGPla4m3z94zzsrzgevzACHSawHPz9GQ2yolXqlFQWDk5Y1m9Rfan6GDe bBMzUYkEJVkdsNzDrizPH3p/wp4iLbGQO+xRqJAXLWc/82tVlBMJDvcUK/p2j8JG67vW JyYuXTcuTGH1Je/otaxl74IlUIl6rq7W15MGKqrUYKABf2XVyJOKLSGBD12fcD6NSHp6 vPD7Y5WPtnQLuEY4eEuFudr6fFDU+SZ7/OurY5FaW7SFTD7rvAP9WJRSazAEPbLAiqyL ubIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=C06iPA911Ew5D70MstpVbAnnLJKzMcg2rbMroCwO1/0=; b=mCCu0WGrzcRQVRaZZ4wKHaVTugXurBd9QSkhcw/CS3USLdiQTCVTo5rLW2FdPq53hr HmMY5FEUrxhR6aZ3VqtrLMAEV+Aj+srLzpc/hyUpPbcizp1ZNUcmf4C328L7e1QAraSD mMNZgnUU+HszaOgdL+bUJg9N/iby7SMxT/3S6tuo/s5D00LGGAvu8vB+001NtGtHJu5W 9TOlOMG+Ow3qS3CiZu6L4x2igrktXM/EoefQSY8eFEMLtehO2ptq7e0amhrbuazbZuR+ Y53hhF75h+X2D6xbmvVC3K6AnGwQMPLuTv/Qn6+I+gFhcL6ZWhIntnfBiglztXJRqVKS CjNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=JKokspkk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i124-v6si16297725pfc.110.2018.08.01.00.21.56; Wed, 01 Aug 2018 00:22:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=JKokspkk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387499AbeHAJEt (ORCPT + 99 others); Wed, 1 Aug 2018 05:04:49 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:48220 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733169AbeHAJEt (ORCPT ); Wed, 1 Aug 2018 05:04:49 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w717EHJ3182104; Wed, 1 Aug 2018 07:20:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=C06iPA911Ew5D70MstpVbAnnLJKzMcg2rbMroCwO1/0=; b=JKokspkkLC6fpKvetlxPh51JopE4OCQ394I6G49Iej+Y6qwQnMR2hgj4f4ezvmD+KOiC uiXqiCizS0Nh4jxNflDh2Rx7Av3lRuQ6VzHMBfkd9+CAXJp+EiAQY3+XI4z6SQNm5CTm IOTnSYuiYNO797i9UZiN6x+fDJ0zVuCf9kdK0L8awTXsFF9s/hQ7DycIp64UEPi4TEZy p1KAQkgZU0wzut5nyBInYgikEVVvUNYcEVhS2RFdrLC3ePzvi7Vhty1m48IUuwQ8X4s4 V54T88xq3hyz5chSAh8s4kGV+1CBEB8jBPjXPPPizIS0Fpmz5AV5HPESZOiki5hZ2QmS 7A== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2kgfwt48m6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Aug 2018 07:20:07 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w717K3sD032197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Aug 2018 07:20:03 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w717K13P006237; Wed, 1 Aug 2018 07:20:01 GMT Received: from [10.182.70.180] (/10.182.70.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 01 Aug 2018 00:20:01 -0700 Subject: Re: [next-20180727][qla2xxx][BUG] WARNING: CPU: 12 PID: 511 at drivers/scsi/scsi_lib.c:691 scsi_end_request+0x250/0x280 To: Abdul Haleem , linuxppc-dev , "Madhani, Himanshu" Cc: linux-block , linux-fsdevel , linux-ext4 , linux-scsi , linux-next , Stephen Rothwell , linux-kernel , jejb@linux.vnet.ibm.com, Jens Axboe , dgilbert@interlog.com, "bart.vanassche" , rosattig@br.ibm.com, kyle.mahlkuch@ibm.com References: <1533105183.23332.15.camel@abdul> From: "jianchao.wang" Message-ID: Date: Wed, 1 Aug 2018 15:19:58 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1533105183.23332.15.camel@abdul> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8971 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1808010080 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Abdul On 08/01/2018 02:33 PM, Abdul Haleem wrote: > # mkfs -t ext4 /dev/mapper/mpatha > mke2fs 1.43.1 (08-Jun-2016) > Found a dos partition table in /dev/mapper/mpatha > Proceed anyway? (y,n) y > Discarding device blocks: > qla2xxx [0106:a0:00.1]-801c:2: Abort command issued nexus=2:1:0 -- 1 2002. > qla2xxx [0106:a0:00.0]-801c:0: Abort command issued nexus=0:1:0 -- 1 2002. > qla2xxx [0106:a0:00.1]-801c:2: Abort command issued nexus=2:1:0 -- 1 2002. > qla2xxx [0106:a0:00.0]-801c:0: Abort command issued nexus=0:1:0 -- 1 2002. > WARNING: CPU: 12 PID: 511 at drivers/scsi/scsi_lib.c:691 scsi_end_request+0x250/0x280 ... > NIP [c000000000690080] scsi_end_request+0x250/0x280 > LR [c00000000068fe80] scsi_end_request+0x50/0x280 > Call Trace: > [c00000027d39b600] [c00000000068fe80] scsi_end_request+0x50/0x280 (unreliable) > [c00000027d39b660] [c0000000006904ac] scsi_io_completion+0x29c/0x7d0 > [c00000027d39b710] [c0000000006848e4] scsi_finish_command+0x104/0x1c0 > [c00000027d39b790] [c00000000068f148] scsi_softirq_done+0x198/0x1f0 > [c00000027d39b820] [c0000000004f2b80] blk_mq_complete_request+0x130/0x1d0 > [c00000027d39b860] [c00000000068d27c] scsi_mq_done+0x2c/0xe0 > [c00000027d39b890] [d000000004291080] qla2xxx_qpair_sp_compl+0xa8/0x140 [qla2xxx] > [c00000027d39b900] [d0000000042cc9d0] qla2x00_process_completed_request+0x68/0x140 [qla2xxx] > ------------[ cut here ]------------ > kernel BUG at block/blk-core.c:3196! blk_finish_request BUG_ON(blk_queued_rq(req)) We are also suffering a similar issue on qla2xxx, the BUG_ON in blk_finish_request is triggered while there are lots of command aborted. The root cause should be qla2xxx driver still invoke scsi_done for an aborted command and cause race between requeue path and normal complete path. Add Himanshu Madhani from qlogic team. It seems that they are working on this. Thanks Jianchao