From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751679AbeBSHKv (ORCPT ); Mon, 19 Feb 2018 02:10:51 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36774 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751000AbeBSHKt (ORCPT ); Mon, 19 Feb 2018 02:10:49 -0500 From: Vaibhav Jain To: "Manoj N . Kumar" Cc: Vaibhav Jain , "Matthew R . Ochs" , Uma Krishnan , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Frederic Barrat , linuxppc-dev@lists.ozlabs.org Subject: [PATCH] scsi: cxlflash: Select SCSI_SCAN_ASYNC Date: Mon, 19 Feb 2018 12:40:37 +0530 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18021907-0012-0000-0000-000005B21689 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021907-0013-0000-0000-0000192E205F Message-Id: <20180219071037.27938-1-vaibhav@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-19_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802190090 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cxlflash driver uses "Asynchronous SCSI scanning" enabled by CONFIG_SCSI_SCAN_ASYNC. Without this enabled the modprobe of cxlflash module gets hung with following backtrace: Call Trace: __switch_to+0x2cc/0x470 __schedule+0x288/0xab0 schedule+0x40/0xc0 schedule_timeout+0x254/0x4f0 wait_for_common+0xdc/0x260 flush_work+0x140/0x2a0 work_on_cpu+0x88/0xb0 pci_device_probe+0x1d0/0x220 driver_probe_device+0x408/0x5b0 __driver_attach+0x16c/0x1a0 bus_for_each_dev+0xb8/0x110 driver_attach+0x3c/0x60 bus_add_driver+0x1d8/0x370 driver_register+0x9c/0x180 __pci_register_driver+0x74/0xa0 init_cxlflash+0x158/0x1cc do_one_initcall+0x68/0x1e0 do_init_module+0x90/0x254 load_module+0x2f8c/0x3720 SyS_finit_module+0xcc/0x140 system_call+0x58/0x6c Signed-off-by: Vaibhav Jain --- drivers/scsi/cxlflash/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/cxlflash/Kconfig b/drivers/scsi/cxlflash/Kconfig index a011c5dbf214..f054c1b0fff3 100644 --- a/drivers/scsi/cxlflash/Kconfig +++ b/drivers/scsi/cxlflash/Kconfig @@ -6,6 +6,7 @@ config CXLFLASH tristate "Support for IBM CAPI Flash" depends on PCI && SCSI && CXL && EEH select IRQ_POLL + select SCSI_SCAN_ASYNC default m help Allows CAPI Accelerated IO to Flash -- 2.14.3