mirror of https://github.com/schoebel/mars
aio: safeguard ioctx
This commit is contained in:
parent
a12450d891
commit
77714f374e
|
@ -635,6 +635,11 @@ static int aio_event_thread(void *data)
|
||||||
.tv_sec = 1,
|
.tv_sec = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (unlikely(!(void*)output->ctxp)) {
|
||||||
|
MARS_ERR("Oops, context vanished. queued_sum = %d\n", atomic_read(&tinfo->queued_sum));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
oldfs = get_fs();
|
oldfs = get_fs();
|
||||||
set_fs(get_ds());
|
set_fs(get_ds());
|
||||||
/* TODO: don't timeout upon termination.
|
/* TODO: don't timeout upon termination.
|
||||||
|
|
Loading…
Reference in New Issue