From patchwork Tue Oct 2 21:52:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10624109 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 552D2112B for ; Tue, 2 Oct 2018 21:52:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47592284BD for ; Tue, 2 Oct 2018 21:52:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39591284C3; Tue, 2 Oct 2018 21:52:58 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 789EE284BD for ; Tue, 2 Oct 2018 21:52:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbeJCEiX (ORCPT ); Wed, 3 Oct 2018 00:38:23 -0400 Received: from com-out001.mailprotect.be ([83.217.72.83]:52629 "EHLO com-out001.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbeJCEiX (ORCPT ); Wed, 3 Oct 2018 00:38:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mailprotect.be; s=mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id :Date:Subject:Cc:To:From:reply-to:sender:bcc:in-reply-to:references: content-type; bh=9jTSOFIbaxae4srKNUg3VQ4chxcC5fFbJpMTzsERZd4=; b=Yh5JK2ISNmdn 9LqXLMuE08AdLr304kqCj9iHKTlD4orX4RSVEugVZfkGlmONYlbDd7qdvzsVw3o5kyD1NTR3jDfgD ANYOJUf9BSbiYq6NOseuka+bcerN+o6FYumdcWpzbr9CVstI9uozhX+3iSeAY1INZIwbFS3KZcvwM I26qsw86fFL1pg1+WsCxyikh05OtCJekP21Ck5PvE5Mrpq9l95ShMvk2cjoHDUFdmNjyXsnoBsDkd c2ICejLyoZYSFtlFS/3HnA72U9gloplArPZYL13MqfXOgJa+vJ5WPIMS1007ZQrsVvmUrbS6CJtB5 LkF6InCZLivYgv7P1hetfg==; Received: from smtp-auth.mailprotect.be ([178.208.39.159]) by com-mpt-out001.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1g7Sb5-0005re-KU; Tue, 02 Oct 2018 23:52:52 +0200 Received: from desktop-bart.svl.corp.google.com (unknown [104.133.8.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mailprotect.be (Postfix) with ESMTPSA id 52EA0C08FB; Tue, 2 Oct 2018 23:52:36 +0200 (CEST) From: Bart Van Assche To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: Greg Kroah-Hartman , linux-scsi@vger.kernel.org, Bart Van Assche Subject: [PATCH 0/3] sd: Rely on the driver core for asynchronous probing Date: Tue, 2 Oct 2018 14:52:20 -0700 Message-Id: <20181002215223.20453-1-bvanassche@acm.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 X-Originating-IP: 178.208.39.159 X-SpamExperts-Domain: mailprotect.be X-SpamExperts-Username: 178.208.39.128/27 Authentication-Results: mailprotect.be; auth=pass smtp.auth=178.208.39.128/27@mailprotect.be X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.17) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5naByTNX5YUv02C5v9KjNux602E9L7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/iK8p1aZEnH6DUdQkQGCPt wXjXyPZWpNzWSy/3tDea9a84QNt8xrcOgd7mq705+GIFeYFzkUqu2/Y= X-Report-Abuse-To: spam@com-mpt-mgt001.mailprotect.be Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello Martin, During the 2018 edition of LSF/MM there was a session about increasing SCSI disk probing concurrency. This patch series implements what has been proposed during that session, namely: - Make sure that the driver core is aware of asynchronous SCSI LUN probing. - Avoid unnecessary serialization between sd_probe() and sd_remove() because this could lead to a deadlock. Please consider this patch series for kernel v4.20. Thanks, Bart. Bart Van Assche (3): sd: Rely on the driver core for asynchronous probing sd: Inline sd_probe_part2() __device_release_driver(): Do not wait for asynchronous probing drivers/base/dd.c | 3 -- drivers/scsi/scsi.c | 14 ----- drivers/scsi/scsi_pm.c | 22 +------- drivers/scsi/scsi_priv.h | 3 -- drivers/scsi/sd.c | 110 ++++++++++++++++----------------------- 5 files changed, 46 insertions(+), 106 deletions(-) Tested-by: Laurence Oberman