ref: 93a234d85dee729fc5dfccffa95d1b1e9097e499
parent: 23ecf96820d525df12afb508c44c801f9b119b65
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 {
--
⑨