From nobody Thu Apr 2 17:10:30 2026 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAC952857EE for ; Thu, 19 Feb 2026 04:39:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771475990; cv=none; b=kpblyqBNcz5QJvfeb9+COkDiXCwzhuY2h0N9a/LYZmUiLbG9ogM7R2TGA8rfBqoSJrJthOLqigKBDOh9++6iR0uMVCtlTH3BLnCB5bUTl80QAj6IJ18O8zkmwW8PbDYOO3Dbx44d1U+VUlJaZQr1fxHgE8h7iU01dQKypp9rOAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771475990; c=relaxed/simple; bh=ObbPzKcMkLFZEOmtX0HBbcQLzdXfZGKOceMbh+nh1/k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Xo6nbLw9MElPxmkLGSeH5bu3eGBM323kBUHIia1X1EkTlvIepiM1hQKscpjxCNiPhtj3HJ+g0xyboJCBFkCveTTTOCyXZiNBf98EcsguSmyGF4n8rFL/xA/Ahz28HDEc8jtSeIgNAXNxLkdkQUl/5UWZRoEFq/XS2UpH8Cb9FTI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UAeSg0Qy; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UAeSg0Qy" Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-c6e77ace76aso256606a12.3 for ; Wed, 18 Feb 2026 20:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771475989; x=1772080789; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TK2FSfFpgWRmabgfvqWtVYcxZdfMtKtMSre/uFQr/xo=; b=UAeSg0QyrGANPr9XQMKl92PwbhUuuTjli5GzG0K9m+FZ1JNyINSf7I+tavnr5iSYAD FXhORsL2XX3uGGs7PtIFM3VFL9nZUxpe1nmkn39piEblidKe3KkI9ZKoMisAUQIrTsa2 aRh3u3GDdm8LP3zq1aejQBZADPxDdJoPitSv0vSpFujC5MYkseamLE3VmdAF/5ogesEX JaHeOBGpDWTsW23+lya4f9c2ZCDw6yY4zzy1po80Ag2xU0fpVWCT7o9xHLm+7toduzrY yBp6X9h2oLn9A6ZbM8sMGo15qjYYGBNsqs0hAgAcLF9nILwuPVX0/540SoVJDr1d9RhX BC8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771475989; x=1772080789; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=TK2FSfFpgWRmabgfvqWtVYcxZdfMtKtMSre/uFQr/xo=; b=YwPBu9uiz6BKiiSOB6jfcnRSft2dSYcxnbJJ0rH2FwhCk1SLmhYoBeM9qh4N1radRk dL44z7S0iEmS8c1B9auAPbdIa5FT3zzC6ZjlGFC9OsPaCtH7ckT0k7muhbpr6Vu96FOE s3lCM/WeUP0Id6mfkF/NN2b+dMppFBFU26uCeSW9Qtyej8GN3DgIQmJ6+g7Wb3rnLs6c 2ruuIgw2a7JnvbY/n/smGtEse7joAwLSnq7mnijE1i4CxGhhTG6JzDzAIdleTWx5KNbZ Dn7MwPDbPlpwPvuS3UW0KEnkdtx3FQeMVOHtMz8X3AZGbcXz1R9Cb/Rtq1XqfvoC3w2N 31Pw== X-Gm-Message-State: AOJu0YwvrWkqCuQcCaRCqNMcZwBDda8Ab+7U5hD8Mce11G8QYD58G0MA EPZjrEStmuML/thBpcXNeysx/7SxXaVZEtjrmIW3Zxh7UFPFUQZS/ls6 X-Gm-Gg: AZuq6aKAJVpRTIF7hoZLn0zhdIa/6+Paytbu0UdPd7xNKfMkb4VpNIWkFTmuizRXwHq MRZ34/ExsfLXApYRf9pqnTWw5+yXDcm7/GoJMCbIT2SC+Jz8IOoJwgv3dRylEL2g8ra4x2Y0wYO dYu/RTVPeJVcQ8ZebJ+AIGAPKqlGQANvzqTnDRx8KxcNMSUUwvvFkwsZOUD8jbWZ2aVMxTOOyVF OsBkGKNPwmT9K5ImK9hjyvMsp1yyFNRexuPuPkg61bk4nXGY/0LRl5EbuWd6eOiiDdvg9kW5U9Q hlmeY2uwJaJ3deWZ/NgCbofoMxMHcqsUscsUIJ3CuTIckm413mGzBJ2h/VYChOQaXfoNAVdTcNm VdUa1aRT1m7HxgsCLVKa+fE+uSo1ZM+6bgQYZtLyO1shJq8yFhWsvuYio7IXEJLB5TWM5xV2eBW nq2WI8I/6FpY7qOatvWZ4eVYFrf3AOJIyXyHs4wkk7cF8oSK8= X-Received: by 2002:a17:903:2b0d:b0:2aa:d7a7:8091 with SMTP id d9443c01a7336-2ad5aed3fcemr13876565ad.12.1771475989047; Wed, 18 Feb 2026 20:39:49 -0800 (PST) Received: from 5163NRD-SPRABHU.ssi.samsung.com ([103.50.21.94]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ad1a713675sm203345025ad.27.2026.02.18.20.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Feb 2026 20:39:48 -0800 (PST) From: sw.prabhu6@gmail.com To: James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, mcgrof@kernel.org, pankaj.raghav@linux.dev, bvanassche@acm.org, dlemoal@kernel.org, Swarna Prabhu Subject: [PATCH 2/2] scsi: scsi_debug: enable sdebug_sector_size > PAGE_SIZE Date: Wed, 18 Feb 2026 20:37:43 -0800 Message-Id: <20260219043741.276729-3-sw.prabhu6@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260219043741.276729-1-sw.prabhu6@gmail.com> References: <20260219043741.276729-1-sw.prabhu6@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Swarna Prabhu Now that block layer can support block size > PAGE_SIZE and the issue with WRITE_SAME(16) and WRITE_SAME(10) are fixed for sector sizes > PAGE_SIZE, enable sdebug_sector_size > PAGE_SIZE in scsi_debug. Reviewed-by: Damien Le Moal Signed-off-by: Swarna Prabhu --- drivers/scsi/scsi_debug.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index c947655db518..4c6feee87f05 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -8495,13 +8495,7 @@ static int __init scsi_debug_init(void) } else if (sdebug_ndelay > 0) sdebug_jdelay =3D JDELAY_OVERRIDDEN; =20 - switch (sdebug_sector_size) { - case 512: - case 1024: - case 2048: - case 4096: - break; - default: + if (blk_validate_block_size(sdebug_sector_size)) { pr_err("invalid sector_size %d\n", sdebug_sector_size); return -EINVAL; } --=20 2.39.5