orangefs: remove vestigial async io code
authorMartin Brandenburg <martin@omnibond.com>
Sat, 20 Feb 2016 19:26:01 +0000 (14:26 -0500)
committerMike Marshall <hubcap@omnibond.com>
Wed, 24 Feb 2016 22:07:50 +0000 (17:07 -0500)
I have verified that there is nothing in the userspace daemon version we
are implementing this protocol against that ever looks at this field.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/upcall.h

index 4eb009e..399d528 100644 (file)
@@ -102,7 +102,6 @@ static ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inod
                return -ENOMEM;
 
        /* synchronous I/O */
-       new_op->upcall.req.io.async_vfs_io = ORANGEFS_VFS_SYNC_IO;
        new_op->upcall.req.io.readahead_size = readahead_size;
        new_op->upcall.req.io.io_type = type;
        new_op->upcall.req.io.refn = orangefs_inode->refn;
index c3b3b22..91cbd53 100644 (file)
@@ -101,14 +101,6 @@ enum orangefs_vfs_op_states {
 };
 
 /*
- * Defines for controlling whether I/O upcalls are for async or sync operations
- */
-enum ORANGEFS_async_io_type {
-       ORANGEFS_VFS_SYNC_IO = 0,
-       ORANGEFS_VFS_ASYNC_IO = 1,
-};
-
-/*
  * An array of client_debug_mask will be built to hold debug keyword/mask
  * values fetched from userspace.
  */
index af6dcac..001b202 100644 (file)
  * client-core and device
  */
 struct orangefs_io_request_s {
-       __s32 async_vfs_io;
+       __s32 __pad1;
        __s32 buf_index;
        __s32 count;
-       __s32 __pad1;
+       __s32 __pad2;
        __s64 offset;
        struct orangefs_object_kref refn;
        enum ORANGEFS_io_type io_type;