Lines Matching refs:ws

49 	struct work_struct ws;
56 INIT_WORK(&k->ws, fn);
63 queue_work(wq, &k->ws);
104 struct work_struct *ws, *tmp;
124 list_for_each_entry_safe(ws, tmp, &work_items, entry) {
125 k = container_of(ws, struct continuation, ws);
127 INIT_LIST_HEAD(&ws->entry); /* to avoid a WARN_ON */
128 queue_work(b->wq, ws);
171 list_add_tail(&k->ws.entry, &b->work_items);
1073 dm_cell_quiesce_v2(mg->cache->prison, mg->cell, &mg->k.ws);
1076 static struct dm_cache_migration *ws_to_mg(struct work_struct *ws)
1078 struct continuation *k = container_of(ws, struct continuation, ws);
1228 static void mg_success(struct work_struct *ws)
1230 struct dm_cache_migration *mg = ws_to_mg(ws);
1235 static void mg_update_metadata(struct work_struct *ws)
1238 struct dm_cache_migration *mg = ws_to_mg(ws);
1297 static void mg_update_metadata_after_copy(struct work_struct *ws)
1299 struct dm_cache_migration *mg = ws_to_mg(ws);
1307 mg_update_metadata(ws);
1310 static void mg_upgrade_lock(struct work_struct *ws)
1313 struct dm_cache_migration *mg = ws_to_mg(ws);
1334 mg_update_metadata(ws);
1338 static void mg_full_copy(struct work_struct *ws)
1340 struct dm_cache_migration *mg = ws_to_mg(ws);
1347 mg_upgrade_lock(ws);
1355 static void mg_copy(struct work_struct *ws)
1357 struct dm_cache_migration *mg = ws_to_mg(ws);
1374 mg_full_copy(ws);
1388 mg_full_copy(ws);
1419 mg_copy(&mg->k.ws);
1470 static void invalidate_completed(struct work_struct *ws)
1472 struct dm_cache_migration *mg = ws_to_mg(ws);
1502 static void invalidate_remove(struct work_struct *ws)
1505 struct dm_cache_migration *mg = ws_to_mg(ws);
1551 queue_work(cache->wq, &mg->k.ws);
1806 static void process_deferred_bios(struct work_struct *ws)
1808 struct cache *cache = container_of(ws, struct cache, deferred_bio_worker);
1860 static void do_waker(struct work_struct *ws)
1862 struct cache *cache = container_of(to_delayed_work(ws), struct cache, waker);
1870 static void check_migrations(struct work_struct *ws)
1874 struct cache *cache = container_of(ws, struct cache, migration_worker);