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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/sockfs/socksubr.c
          +++ new/usr/src/uts/common/fs/sockfs/socksubr.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  25   25   * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
       26 + * Copyright 2015, Joyent, Inc. All rights reserved.
  26   27   */
  27   28  
  28   29  #include <sys/types.h>
  29   30  #include <sys/t_lock.h>
  30   31  #include <sys/param.h>
  31   32  #include <sys/systm.h>
  32   33  #include <sys/buf.h>
  33   34  #include <sys/conf.h>
  34   35  #include <sys/cred.h>
  35   36  #include <sys/kmem.h>
↓ open down ↓ 1844 lines elided ↑ open up ↑
1880 1881          }
1881 1882  
1882 1883          ksp->ks_ndata = ns;
1883 1884          return (0);
1884 1885  }
1885 1886  
1886 1887  ssize_t
1887 1888  soreadfile(file_t *fp, uchar_t *buf, u_offset_t fileoff, int *err, size_t size)
1888 1889  {
1889 1890          struct uio auio;
1890      -        struct iovec aiov[MSG_MAXIOVLEN];
     1891 +        struct iovec aiov[1];
1891 1892          register vnode_t *vp;
1892 1893          int ioflag, rwflag;
1893 1894          ssize_t cnt;
1894 1895          int error = 0;
1895 1896          int iovcnt = 0;
1896 1897          short fflag;
1897 1898  
1898 1899          vp = fp->f_vnode;
1899 1900          fflag = fp->f_flag;
1900 1901  
↓ open down ↓ 57 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX