From: Al Viro Date: Sat, 6 Feb 2016 19:59:38 +0000 (-0500) Subject: orangefs: avoid freeing a slot twice in wait_for_direct_io() X-Git-Tag: v4.6-rc1~2^2~63 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e17be9fd4d51302c41b17e22f9ec96751f47951b;p=linux-block.git orangefs: avoid freeing a slot twice in wait_for_direct_io() Signed-off-by: Al Viro Signed-off-by: Mike Marshall --- 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__);