Received: by 10.223.185.116 with SMTP id b49csp8744087wrg; Fri, 2 Mar 2018 07:13:52 -0800 (PST) X-Google-Smtp-Source: AG47ELtuYMfM6PBawuBfEPYGj8xomOnDjGBh7qIcmoI8ZgvU3NDsdTEIBgzOYD5QRG1Bxza6oD70 X-Received: by 10.98.8.92 with SMTP id c89mr5929371pfd.154.1520003632636; Fri, 02 Mar 2018 07:13:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520003632; cv=none; d=google.com; s=arc-20160816; b=uCyY2AYijANXtFwgmMLEXfFiHtx4yUYtAnLsOPhxgF03utk1oMme7yNyFNFQqiNoel U/SJcq9mXxFjdOC5WjXnNizkpJAvcXsGXfBGUM02J81qbYZ13fszDOIyGylcYFzWsXQi IwuAxKhFEulbPAMQxhnbmHgOeW/9EIfgvhd8K6Zmc/bgyaGiUXZnWHMvpTPQwsgl6mVM nn8VS3mysTKDSnWxR9/73d4t0RYQF1Si2qHTyfE94fSjc9QgLQ6Hnjury5s36Nid0a88 41tT2/qegMO6xSt+sC2fW9uk+WcdVPF2/+VTE8Bb8HnzVnnqCP3kjHvnq4YrmCVMSLPi 2y9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=FxBbzZILVpC013kA4n9uVeOmYsNpNJ4Jsa2zg1LvuoQ=; b=gJrlIvTrW8eLasrUFIquuCjkmKaS55SkHVxnRDpUCtsr8OrzeJdckRR5qgYSHW39bS VHDYBMHLovaBw0nBgHevI1NgbhZv4obS/p4S41OROeDB3b04EkEfUhPA0/nhveMaP2S8 0uMk+o4ZMxCRutm4C4kSQcTL5FTqN+i4MTBymdwqcYtkTF2s8oLwomp3iqZBvfS0vG7z fX4hv70uq+GzGMbEtf/LwbhwnsJUSNpL7CoC8UsZnaM7L9VHyvUTUVIMhorfD5+YnGAV bz7kxctaoZhxgy6yj9goXW5tAwDBI+yrZBk6UJcm2pC0w614Qv5huA+Qj5Jyi/wz7NRz gT+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si4117481pgd.787.2018.03.02.07.13.37; Fri, 02 Mar 2018 07:13:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936313AbeCBMAm (ORCPT + 99 others); Fri, 2 Mar 2018 07:00:42 -0500 Received: from mx2.suse.de ([195.135.220.15]:44702 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936301AbeCBMAj (ORCPT ); Fri, 2 Mar 2018 07:00:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7F78081571; Fri, 2 Mar 2018 12:00:38 +0000 (UTC) Date: Fri, 2 Mar 2018 13:00:38 +0100 From: Johannes Thumshirn 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 Message-ID: <20180302120038.4mgcn2lmft4ygqz4@linux-x5ow.site> References: <01000161e1e448a5-d54e05d2-58f2-4480-b05b-67185d4ffae7-000000@email.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <01000161e1e448a5-d54e05d2-58f2-4480-b05b-67185d4ffae7-000000@email.amazonses.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 01, 2018 at 02:08:10PM +0000, Jeremy Cline wrote: > If the read-only flag is true on a SCSI disk, re-reading the partition > table sets the flag back to false. > > To observe this bug, you can run: > > 1. blockdev --setro /dev/sda > 2. blockdev --rereadpt /dev/sda > 3. blockdev --getro /dev/sda hi Jeremy, Do you mind wiring up a testcase in blktest [1] for this? Given that you already have a rather trivial reproducer. [1] https://github.com/osandov/ Thanks, Johannes -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850