Module Name:    src
Committed By:   mlelstv
Date:           Sat Sep 28 08:57:47 UTC 2024

Modified Files:
        src/sys/dev/scsipi: sd.c

Log Message:
Don't artificially limit block size to 4096 bytes, use MAXPHYS.


To generate a diff of this commit:
cvs rdiff -u -r1.336 -r1.337 src/sys/dev/scsipi/sd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/sd.c
diff -u src/sys/dev/scsipi/sd.c:1.336 src/sys/dev/scsipi/sd.c:1.337
--- src/sys/dev/scsipi/sd.c:1.336	Sat Feb 24 22:06:49 2024
+++ src/sys/dev/scsipi/sd.c	Sat Sep 28 08:57:47 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: sd.c,v 1.336 2024/02/24 22:06:49 mlelstv Exp $	*/
+/*	$NetBSD: sd.c,v 1.337 2024/09/28 08:57:47 mlelstv Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.336 2024/02/24 22:06:49 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.337 2024/09/28 08:57:47 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_scsi.h"
@@ -1315,7 +1315,7 @@ static int
 sd_validate_blksize(struct scsipi_periph *periph, int len)
 {
 
-	if (len >= 256 && powerof2(len) && len <= 4096) {
+	if (len >= 256 && powerof2(len) && len <= MAXPHYS) {
 		return 1;
 	}
 

Reply via email to