Staticize pmemblk ioengine_ops
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 9 Jan 2017 14:41:59 +0000 (23:41 +0900)
committerJens Axboe <axboe@fb.com>
Mon, 9 Jan 2017 15:39:20 +0000 (08:39 -0700)
Inbox engines can have static ops.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/pmemblk.c
engines/skeleton_external.c

index ca72697819511dc1190658bc687d2f5534f621f4..5439da055f29aaecd7f706dbef85b24487468aa1 100644 (file)
@@ -482,7 +482,7 @@ static int fio_pmemblk_unlink_file(struct thread_data *td, struct fio_file *f)
        return 0;
 }
 
        return 0;
 }
 
-struct ioengine_ops ioengine = {
+static struct ioengine_ops ioengine = {
        .name = "pmemblk",
        .version = FIO_IOOPS_VERSION,
        .queue = fio_pmemblk_queue,
        .name = "pmemblk",
        .version = FIO_IOOPS_VERSION,
        .queue = fio_pmemblk_queue,
index 63a6f8d177edbd31b0fc913a3c96b63e59a35e33..5d6a9ed815104590d5489be289378f1b4e31a2cb 100644 (file)
@@ -126,7 +126,7 @@ static int fio_skeleton_close(struct thread_data *td, struct fio_file *f)
 
 /*
  * Note that the structure is exported, so that fio can get it via
 
 /*
  * Note that the structure is exported, so that fio can get it via
- * dlsym(..., "ioengine");
+ * dlsym(..., "ioengine"); for (and only for) external engines.
  */
 struct ioengine_ops ioengine = {
        .name           = "engine_name",
  */
 struct ioengine_ops ioengine = {
        .name           = "engine_name",