mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-06 06:35:12 +00:00
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>
This commit is contained in:
parent
6ebcc3fcda
commit
e17be9fd4d
1 changed files with 1 additions and 0 deletions
|
@ -210,6 +210,7 @@ populate_shared_memory:
|
||||||
*/
|
*/
|
||||||
if (ret == -EAGAIN && op_state_purged(new_op)) {
|
if (ret == -EAGAIN && op_state_purged(new_op)) {
|
||||||
orangefs_bufmap_put(bufmap, buffer_index);
|
orangefs_bufmap_put(bufmap, buffer_index);
|
||||||
|
buffer_index = -1;
|
||||||
gossip_debug(GOSSIP_FILE_DEBUG,
|
gossip_debug(GOSSIP_FILE_DEBUG,
|
||||||
"%s:going to repopulate_shared_memory.\n",
|
"%s:going to repopulate_shared_memory.\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
Loading…
Add table
Reference in a new issue