orangefs: avoid freeing a slot twice in wait_for_direct_io()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 6 Feb 2016 19:59:38 +0000 (14:59 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 12 Feb 2016 20:05:32 +0000 (15:05 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c

index d865b58..40b3805 100644 (file)
@@ -210,6 +210,7 @@ populate_shared_memory:
         */
        if (ret == -EAGAIN && op_state_purged(new_op)) {
                orangefs_bufmap_put(bufmap, buffer_index);
+               buffer_index = -1;
                gossip_debug(GOSSIP_FILE_DEBUG,
                             "%s:going to repopulate_shared_memory.\n",
                             __func__);