mirror of
https://github.com/schoebel/mars
synced 2024-12-26 08:32:24 +00:00
aio: stop sync_thread earlier
This commit is contained in:
parent
9d0db3beb7
commit
b1b812beaa
@ -568,7 +568,8 @@ int aio_sync_thread(void *data)
|
|||||||
|
|
||||||
wait_event_interruptible_timeout(
|
wait_event_interruptible_timeout(
|
||||||
tinfo->event,
|
tinfo->event,
|
||||||
atomic_read(&tinfo->queued_sum) > 0,
|
atomic_read(&tinfo->queued_sum) > 0 ||
|
||||||
|
tinfo->should_terminate,
|
||||||
HZ / 4);
|
HZ / 4);
|
||||||
|
|
||||||
mutex_lock(&tinfo->mutex);
|
mutex_lock(&tinfo->mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user