Project

General

Profile

aio.patch

Wout van Heeswijk, 07/06/2020 05:36 PM

Download (798 Bytes)

View differences:

src/os/bluestore/aio.cc
25 25
  int r;
26 26

  
27 27
  aio_iter cur = begin;
28
  struct aio_t *piocb[aios_size];
28
  struct aio_t **piocb = (struct aio_t**)malloc(sizeof(struct aio_t*)*aios_size);
29 29
  int left = 0;
30 30
  while (cur != end) {
31 31
    cur->priv = priv;
......
60 60
	(*retries)++;
61 61
	continue;
62 62
      }
63
      free(piocb);
63 64
      return r;
64 65
    }
65 66
    ceph_assert(r > 0);
......
68 69
    attempts = 16;
69 70
    delay = 125;
70 71
  }
72
  free(piocb);
71 73
  return done;
72 74
}
73 75