Print this page
NEX-16783 Panic in smbfs_delmap_callback (fix leak)
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Dan Fields <dan.fields@nexenta.com>
5404 smbfs needs mmap support
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
        
@@ -92,10 +92,11 @@
  */
 #define SMI_INT         0x04            /* interrupts allowed */
 #define SMI_NOAC        0x10            /* don't cache attributes */
 #define SMI_LLOCK       0x80            /* local locking only */
 #define SMI_ACL         0x2000          /* share supports ACLs */
+#define SMI_DIRECTIO    0x40000         /* do direct I/O */
 #define SMI_EXTATTR     0x80000         /* share supports ext. attrs */
 #define SMI_DEAD        0x200000        /* mount has been terminated */
 
 /*
  * Stuff returned by smbfs_smb_qfsattr
@@ -112,10 +113,11 @@
  */
 typedef struct smbmntinfo {
         struct vfs              *smi_vfsp;      /* mount back pointer to vfs */
         struct smbnode          *smi_root;      /* the root node */
         struct smb_share        *smi_share;     /* netsmb SMB share conn data */
+        struct taskq            *smi_taskq;     /* for async work */
         kmutex_t                smi_lock;       /* mutex for flags, etc. */
         uint32_t                smi_flags;      /* NFS-derived flag bits */
         uint32_t                smi_status;     /* status bits for this mount */
         hrtime_t                smi_statfstime; /* sm_statvfsbuf cache time */
         statvfs64_t             smi_statvfsbuf; /* cached statvfs data */