> On Apr 4, 2020, at 2:14 PM, Andrew Doran <[email protected]> wrote:
> 
> Any comments?

+static int
+fstrans_lwp_ctor(void *arg, void *obj, int flags)
+{
+       struct fstrans_lwp_info *fli = obj;
+
+       memset(fli, 0, sizeof(*fli));
+       membar_sync();
+       mutex_enter(&fstrans_lock);
+       LIST_INSERT_HEAD(&fstrans_fli_head, fli, fli_list);
+       mutex_exit(&fstrans_lock);
+       return 0;
+}

That membar_sync() could be a membar_producer().

-- thorpej

Reply via email to