From 258da6cd992c279469f2288f8a3cd41be69d43c2 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Mon, 6 Apr 2009 00:37:54 -0700 Subject: io-threads: Cleaner stub destruction Signed-off-by: Anand V. Avati --- xlators/performance/io-threads/src/io-threads.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/performance/io-threads/src/io-threads.c') diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index 9a387d93a..83d0d7089 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -171,6 +171,8 @@ iot_schedule_ordered (iot_conf_t *conf, if (inode == NULL) { gf_log (conf->this->name, GF_LOG_ERROR, "Got NULL inode for ordered request"); + STACK_UNWIND (stub->frame, -1, EINVAL, NULL); + call_stub_destroy (stub); return; } req = iot_init_request (stub); @@ -182,6 +184,7 @@ iot_schedule_ordered (iot_conf_t *conf, "Insane worker index. Unwinding stack"); STACK_UNWIND (stub->frame, -1, ECANCELED, NULL); iot_destroy_request (req); + call_stub_destroy (stub); goto unlock_out; } /* inode lock once acquired, cannot be left here -- cgit