Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e17be9fd authored by Al Viro's avatar Al Viro Committed by Mike Marshall
Browse files

orangefs: avoid freeing a slot twice in wait_for_direct_io()

parent 6ebcc3fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -210,6 +210,7 @@ static ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inod
	 */
	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__);