Print this page
5880 Increase IOV_MAX to at least 1024
Portions contributed by: Jerry Jelinek <jerry.jelinek@joyent.com>

@@ -20,10 +20,11 @@
  */
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  * Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
+ * Copyright 2015 Joyent, Inc.  All rights reserved.
  */
 
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
 

@@ -642,20 +643,15 @@
 
 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
 /*
  * Structure for rw (read/write) procedure calls. A pointer
  * to a struiod_t is passed as a parameter to the rwnext() call.
- *
- * Note: DEF_IOV_MAX is defined and used as it is in "fs/vncalls.c"
- *       as there isn't a formal definition of IOV_MAX ???
  */
-#define DEF_IOV_MAX     16
-
 struct struiod {
         mblk_t          *d_mp;          /* pointer to mblk (chain) */
         uio_t           d_uio;          /* uio info */
-        iovec_t d_iov[DEF_IOV_MAX];     /* iov referenced by uio */
+        iovec_t         *d_iov;         /* iov referenced by uio */
 };
 
 /*
  * Structure for information procedure calls.
  */