Whamcloud - gitweb
LU-5731 osp: flush async updates for osp_sync
[fs/lustre-release.git] / lustre / osp / osp_internal.h
index 4ce2eec..d519151 100644 (file)
@@ -198,6 +198,9 @@ struct osp_device {
        struct dt_update_request        *opd_async_requests;
        /* Protect current operations on opd_async_requests. */
        struct mutex                     opd_async_requests_mutex;
+       struct list_head                 opd_async_updates;
+       struct rw_semaphore              opd_async_updates_rwsem;
+       atomic_t                         opd_async_updates_count;
 };
 
 #define opd_pre_lock                   opd_pre->osp_pre_lock