X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_handler.c;h=334310d98da5b46fe41e8d758173556051005d43;hp=ff4bc5874ed292f36293f0064e6043b475eff9d2;hb=60270c6488b01db756eb216548f83f2826972854;hpb=685b0943eb4fe55720458326a5d6c4949457bf7a diff --git a/lustre/osd-zfs/osd_handler.c b/lustre/osd-zfs/osd_handler.c index ff4bc58..334310d 100644 --- a/lustre/osd-zfs/osd_handler.c +++ b/lustre/osd-zfs/osd_handler.c @@ -1089,13 +1089,19 @@ static struct lu_device *osd_device_alloc(const struct lu_env *env, struct lu_device_type *type, struct lustre_cfg *cfg) { - struct osd_device *dev; - int rc; + struct osd_device *dev; + struct osd_seq_list *osl; + int rc; OBD_ALLOC_PTR(dev); if (dev == NULL) return ERR_PTR(-ENOMEM); + osl = &dev->od_seq_list; + INIT_LIST_HEAD(&osl->osl_seq_list); + rwlock_init(&osl->osl_seq_list_lock); + sema_init(&osl->osl_seq_init_sem, 1); + rc = dt_device_init(&dev->od_dt_dev, type); if (rc == 0) { rc = osd_device_init0(env, dev, cfg);