summaryrefslogtreecommitdiff
path: root/lib/device/device.h
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2018-01-22 18:17:58 +0000
committerAlasdair G Kergon <agk@redhat.com>2018-02-08 20:15:29 +0000
commitdb41fe6c5dab7ff66db9c0568f0e1e1b31657be3 (patch)
tree5aec60950be5743db0ab44aafc566e8adc278fca /lib/device/device.h
parent8c7bbcfb0f6771a10acd238057fdb7931c3fbb12 (diff)
downloadlvm2-db41fe6c5dab7ff66db9c0568f0e1e1b31657be3.tar.gz
lvmcache: Use asynchronous I/O when scanning devices.
Diffstat (limited to 'lib/device/device.h')
-rw-r--r--lib/device/device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/device/device.h b/lib/device/device.h
index 37d2fd202..b52522dc4 100644
--- a/lib/device/device.h
+++ b/lib/device/device.h
@@ -97,6 +97,9 @@ struct device_buffer {
struct device_area where; /* Location of buf */
dev_io_reason_t reason;
unsigned write:1; /* 1 if write; 0 if read */
+
+ lvm_callback_fn_t dev_read_callback_fn;
+ void *dev_read_callback_context;
};
/*
@@ -203,6 +206,7 @@ void devbufs_release(struct device *dev);
const char *dev_name_confirmed(struct device *dev, int quiet);
struct cmd_context;
+int dev_async_getevents(void);
int dev_async_setup(struct cmd_context *cmd);
void dev_async_exit(void);
int dev_async_reset(struct cmd_context *cmd);