shithub: riscv

Download patch

ref: cb28d3f58a80e61f950616043e833e324528d18d
parent: 9ed0dd3a7fc2e9242af1e17bc9fda7f6e97063f1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 16 07:10:26 EDT 2023

nusb/disk: use IOUNIT constant for Maxiosize

This lets us take advantage of the now bigger 9p
I/O unit of the kernel.

--- a/sys/src/cmd/nusb/disk/scsireq.h
+++ b/sys/src/cmd/nusb/disk/scsireq.h
@@ -10,12 +10,7 @@
 
 enum {					/* fundamental constants/defaults */
 	MaxDirData	= 255,		/* max. direct data returned */
-	/*
-	 * Because we are accessed via devmnt, we can never get i/o counts
-	 * larger than 8216 (Msgsize and devmnt's offered iounit) - 24
-	 * (IOHDRSZ) = 8K.
-	 */
-	Maxiosize	= 8216 - IOHDRSZ, /* max. I/O transfer size */
+	Maxiosize	= IOUNIT,	/* max. I/O transfer size */
 };
 
 typedef struct {