Received: by 10.223.185.116 with SMTP id b49csp8125170wrg; Thu, 1 Mar 2018 18:04:12 -0800 (PST) X-Google-Smtp-Source: AG47ELuVZpi+N6xNdgDSXap6Dk0J8IIkZuVgEJ/8XRqQRMlzRWjd+rAp16o/ruYQub6TYrmB+cwv X-Received: by 2002:a17:902:66e6:: with SMTP id e93-v6mr3764624plk.312.1519956252717; Thu, 01 Mar 2018 18:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519956252; cv=none; d=google.com; s=arc-20160816; b=HpPjT4665n7nMhCr93EVWjThg6G7GD4xVTfr02Zgpbg+cNeg4GWWOz4iHSl3tLBzaG HCv6QMigXS0drTUINB+S30Rh1cB2Oxv4e6FVG5FDL0xA2pVouQn90Ht3YIqkIbwSSK9T ybqh09njve9C3Pk08ESiwEFPqiWCTcJDZ2d2FK0d7jkNzdlFaQYWpoUhMxunm1wdGXid dTUdOa9TvO/k64GB3uQOQQvennvO7aovxO9Y/bunnxnZqBG7WQx2Lb/I9/chd32c/u9h sGkkV0idKac2cHUcbzW+h84BexhDMZeXoM8puLiyAGI0SlDd8AXhhrgjKqVI5FpcTnHn tsmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature:arc-authentication-results; bh=Za39KNEXIQL2XtiN+6Bmd47bi6Kx04yoXc0AFwIpNeY=; b=HdgLg2QVIf1joWlWDQ5Htx5AYS0z122e4guvwaHEA87g0899DDdxTXm22lRmng9uHG CeZ7oPNLyFBJHN12zAMDJC/pyv3/KbhmSnZb1cTz+ZjaU3dO4hT0KYzGypPNQMuXQGZO 7X7ucHQda25nD7in1Ts9cOCcX5xVzQYQMEmrva48Se8X2cFhgFLuaeYgB4vYban93I11 YTi2pdGEjHlBFXveQ1z0FVHrZ75I/qkw7dJOsZxASgOXURYurCsOHH9CyUXlhgaVqKRr WhxfSUiUU3brRQQ/KgIA3IOxUJfkXaR58bhyVM8HnNTUiZP+n1Ngf4Ye73sO3pwRcfEr aQoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=IM3hdv0N; 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 w4-v6si3958585plp.253.2018.03.01.18.03.57; Thu, 01 Mar 2018 18:04:12 -0800 (PST) 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-2017-10-26 header.b=IM3hdv0N; 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 S1163907AbeCBB7A (ORCPT + 99 others); Thu, 1 Mar 2018 20:59:00 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:34218 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163254AbeCBB6y (ORCPT ); Thu, 1 Mar 2018 20:58:54 -0500 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 w221v0Zo124285; Fri, 2 Mar 2018 01:58:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2017-10-26; bh=Za39KNEXIQL2XtiN+6Bmd47bi6Kx04yoXc0AFwIpNeY=; b=IM3hdv0NIDXFFkZgueRNJCP0buiSu92t0+BImuf1D6iV0IsUkU8QpZWJ74F0LUO+/lsk 4LU9+NrvTp6BNzlCtAHchhaQXM0Y37JQcQof1R+qqPEOYIr3ixCaqLpsn40oEjTV5W5Z FI/Gh7+NTCpe87gQ/kjjmncxXrwquxNkJMlWQ/sRN4Tn/kudCkgMW2JnYTvE4GJ7Cxf3 n18HjmC4n6ztdMb1sz0+pt5GJMnEzmHyfvPdp28iql9fMiH7eMGMRMEZ9RVm2qpWVYGC mA+K/fJnPXaziU59vARg9KqTcvupIT91E/rFK/EznFvNO2oRCpgZ2ELQT0azY4VuKaSC dw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2gewcfg0b7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 02 Mar 2018 01:58:50 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w221rnhX009988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Mar 2018 01:53:49 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w221rmON002677; Fri, 2 Mar 2018 01:53:49 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Mar 2018 17:53:48 -0800 To: Jeremy Cline Cc: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: sd: Keep disk read-only when re-reading partition From: "Martin K. Petersen" Organization: Oracle Corporation References: <01000161e1e448a5-d54e05d2-58f2-4480-b05b-67185d4ffae7-000000@email.amazonses.com> Date: Thu, 01 Mar 2018 20:53:46 -0500 In-Reply-To: <01000161e1e448a5-d54e05d2-58f2-4480-b05b-67185d4ffae7-000000@email.amazonses.com> (Jeremy Cline's message of "Thu, 1 Mar 2018 14:08:10 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8819 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=514 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803020017 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jeremy, Thanks for looking into this! > This commit reads the disk's old state and combines it with the device > disk-reported state rather than unconditionally marking it as RW. Applied to 4.16/scsi-fixes with a few minor tweaks. Thank you! -- Martin K. Petersen Oracle Linux Engineering