diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-02-06 22:59:38 +0300 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-02-12 23:05:32 +0300 |
commit | e17be9fd4d51302c41b17e22f9ec96751f47951b (patch) | |
tree | bff100d20323ceb429d7584047241e26d81da635 /fs/orangefs/file.c | |
parent | 6ebcc3fcdac1f70078a02ab11f2aa5a88a4fdaee (diff) | |
download | linux-e17be9fd4d51302c41b17e22f9ec96751f47951b.tar.xz |
orangefs: avoid freeing a slot twice in wait_for_direct_io()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/file.c')
-rw-r--r-- | fs/orangefs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index d865b58fb1fc..40b38057b826 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -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__); |