projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GUASI engine: free lingering requests from the buffer on cleanup
[fio.git]
/
engines
/
guasi.c
diff --git
a/engines/guasi.c
b/engines/guasi.c
index 925c364a83019b84ac01d2136bc9a767e68cdf55..c083eb361472e97db80ea3ddba7d5a20605d8af0 100644
(file)
--- a/
engines/guasi.c
+++ b/
engines/guasi.c
@@
-206,9
+206,12
@@
static int fio_guasi_cancel(struct thread_data *td, struct io_u *io_u)
static void fio_guasi_cleanup(struct thread_data *td)
{
struct guasi_data *ld = td->io_ops->data;
static void fio_guasi_cleanup(struct thread_data *td)
{
struct guasi_data *ld = td->io_ops->data;
+ int n;
GDBG_PRINT(("fio_guasi_cleanup(%p)\n", ld));
if (ld) {
GDBG_PRINT(("fio_guasi_cleanup(%p)\n", ld));
if (ld) {
+ for (n = 0; n < ld->reqs_nr; n++)
+ guasi_req_free(ld->reqs[n]);
guasi_free(ld->hctx);
free(ld->reqs);
free(ld->io_us);
guasi_free(ld->hctx);
free(ld->reqs);
free(ld->io_us);