orangefs: get rid of op->done
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Feb 2016 02:06:50 +0000 (21:06 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 19 Feb 2016 18:45:55 +0000 (13:45 -0500)
shouldn't be needed now

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/devorangefs-req.c
fs/orangefs/file.c
fs/orangefs/orangefs-cache.c
fs/orangefs/orangefs-kernel.h

index 790855a72e3209b8ab570e1faa311e07b78c25e2..b27ed1cb9a36e777d164aabc2a2ff7e36141c99f 100644 (file)
@@ -424,19 +424,6 @@ wakeup:
         * application reading/writing this device to return until
         * the buffers are done being used.
         */
-       if (op->downcall.type == ORANGEFS_VFS_OP_FILE_IO) {
-               long n = wait_for_completion_interruptible_timeout(&op->done,
-                                                       op_timeout_secs * HZ);
-               if (unlikely(n < 0)) {
-                       gossip_debug(GOSSIP_DEV_DEBUG,
-                               "%s: signal on I/O wait, aborting\n",
-                               __func__);
-               } else if (unlikely(n == 0)) {
-                       gossip_debug(GOSSIP_DEV_DEBUG,
-                               "%s: timed out.\n",
-                               __func__);
-               }
-       }
 out:
        if (unlikely(op_is_cancel(op)))
                put_cancel(op);
index 3b1e9e83eb914aad19a7aaba50580c34036ffa78..4eb009e8f19f89163316bcddb7e633a0a75acfd0 100644 (file)
@@ -199,7 +199,7 @@ populate_shared_memory:
                if (orangefs_cancel_op_in_progress(new_op))
                        return ret;
 
-               goto done_copying;
+               goto out;
        }
 
        /*
@@ -212,7 +212,7 @@ populate_shared_memory:
                                       iter,
                                       new_op->downcall.resp.io.amt_complete);
                if (ret < 0)
-                       goto done_copying;
+                       goto out;
        }
        gossip_debug(GOSSIP_FILE_DEBUG,
            "%s(%pU): Amount written as returned by the sys-io call:%d\n",
@@ -222,12 +222,10 @@ populate_shared_memory:
 
        ret = new_op->downcall.resp.io.amt_complete;
 
-done_copying:
        /*
         * tell the device file owner waiting on I/O that this read has
         * completed and it can return now.
         */
-       complete(&new_op->done);
 
 out:
        if (buffer_index >= 0) {
index 09194e69875f7b05f5ab62663694ef8d33062b62..817092a14429c8691a471b4f01bc9580d81f6f26 100644 (file)
@@ -122,8 +122,6 @@ struct orangefs_kernel_op_s *op_alloc(__s32 type)
 
                atomic_set(&new_op->ref_count, 1);
 
-               init_completion(&new_op->done);
-
                new_op->upcall.type = ORANGEFS_VFS_OP_INVALID;
                new_op->downcall.type = ORANGEFS_VFS_OP_INVALID;
                new_op->downcall.status = -1;
index 8613d4166d0f019cc143785955219ec98e9b166d..1d20eadaefd8e015fc0c07fd17bed1a9aaf60151 100644 (file)
@@ -205,8 +205,6 @@ struct orangefs_kernel_op_s {
        struct completion waitq;
        spinlock_t lock;
 
-       struct completion done;
-
        atomic_t ref_count;
 
        /* VFS aio fields */