Example #1
0
static void trigger_event(struct work_struct *work)
{
	struct vm_c *vc = container_of(work, struct vm_c,
					   trigger_event);
	printk("trigger event\n");
	dm_table_event(vc->ti->table);
}
Example #2
0
static void fail_log_device(struct log_c *lc)
{
	if (lc->log_dev_failed)
		return;

	lc->log_dev_failed = 1;
	dm_table_event(lc->ti->table);
}
Example #3
0
static void do_flush(struct work_struct *work)
{
	int r;
	struct log_c *lc = container_of(work, struct log_c, flush_log_work.work);

	atomic_set(&lc->sched_flush, 0);

	r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL);

	if (r)
		dm_table_event(lc->ti->table);
}
Example #4
0
static void fail_log_device(struct log_c *lc)
{
	if (lc->log_dev_failed)
		return;

	DMERR("Failing mirror log device %s.",
	      lc->log_dev->name);

	lc->log_dev_failed = 1;
	if (lc->failure_response == DMLOG_IOERR_BLOCK)
		dm_table_event(lc->ti->table);
}