From patchwork Fri Jan 11 00:08:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10757059 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 E4D18746 for ; Fri, 11 Jan 2019 00:09:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D052D29D45 for ; Fri, 11 Jan 2019 00:09:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEB3C29D4B; Fri, 11 Jan 2019 00:09:31 +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 DE42829D45 for ; Fri, 11 Jan 2019 00:09:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730359AbfAKAJa (ORCPT ); Thu, 10 Jan 2019 19:09:30 -0500 Received: from com-out001.mailprotect.be ([83.217.72.83]:34537 "EHLO com-out001.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbfAKAJa (ORCPT ); Thu, 10 Jan 2019 19:09:30 -0500 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=w5UAqvPd+ZX/HFw7F+8vlCk39NTwUSVcEVo9U0RDXEE=; b=vR5iFK4Zf9Jd I8YFYywTvW2dhx+vhaHUAMrito56j3oMIWrmluLFyFz6i7nVli0nsdq6Mz9fRI/eGwk1N8HoWrRyc iMMbwhF+JqB0+z/KlY1bEkbWepPiI/JB3SkMZ42CiRLMi7DSj3AYylknqjmEb0GTBmUd6XjuDR3ke qe97OipeM6R9fuV0jDFp1OjxtL/Kr+7YyWEx2Ay4daVl/lEmulpqHLjdeVj81/kFHqaC8wfqC1upU 8HmcGCr1hs465CjZ26l1AntPdx2Wh0+2gkfKXXGLOAjAHn2nbnAPlaqu/nswz2VP7L+ReKgesUAWA f4D+ad8zs7KpABjlNAJDDg==; Received: from smtp-auth.mailprotect.be ([178.208.39.155]) by com-mpt-out001.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1ghkO4-000EVw-PD; Fri, 11 Jan 2019 01:09:25 +0100 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 D0372C07A1; Fri, 11 Jan 2019 01:09:10 +0100 (CET) From: Bart Van Assche To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, Bart Van Assche Subject: [PATCH 0/8] sd patches for kernel v5.1 Date: Thu, 10 Jan 2019 16:08:50 -0800 Message-Id: <20190111000858.76261-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog MIME-Version: 1.0 X-Originating-IP: 178.208.39.155 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.05) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5hBogGsxvIM6B6CwM2A1QQ1602E9L7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CcEbxT2UdIuHji9IodMg2vu WMdu+65sFAzW 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 Hi Martin, This patch series includes the following patches: - Two patches that increase SCSI probing concurrency. - Seven patches that clean up/rearrange the code in the sd driver. Please consider these patches for kernel v5.1. Thanks, Bart. Bart Van Assche (4): sd: Rely on the driver core for asynchronous probing sd: Inline sd_probe_part2() sd: Remove a local variable sd: Rename 'SCpnt' into 'cmd' Martin K. Petersen (4): sd: Be consistent about blocks vs. sectors sd: Simplify misaligned I/O check sd: Create helper functions for read/write commands sd: Clean up sd_setup_read_write_cmnd() drivers/scsi/scsi.c | 14 -- drivers/scsi/scsi_pm.c | 22 +- drivers/scsi/scsi_priv.h | 3 - drivers/scsi/sd.c | 484 +++++++++++++++++---------------------- 4 files changed, 211 insertions(+), 312 deletions(-)