mirror of
https://github.com/schoebel/mars
synced 2025-02-14 19:18:29 +00:00
bio: speedup response_thread termination
This commit is contained in:
parent
ccf3c1b944
commit
b17944a512
@ -558,7 +558,11 @@ int bio_response_thread(void *data)
|
|||||||
#endif
|
#endif
|
||||||
wait_event_interruptible_timeout(
|
wait_event_interruptible_timeout(
|
||||||
brick->response_event,
|
brick->response_event,
|
||||||
atomic_read(&brick->completed_count) > 0,
|
atomic_read(&brick->completed_count) > 0 ||
|
||||||
|
(brick_thread_should_stop() &&
|
||||||
|
atomic_read(&brick->fly_count[0]) +
|
||||||
|
atomic_read(&brick->fly_count[1]) +
|
||||||
|
atomic_read(&brick->fly_count[2]) <= 0),
|
||||||
sleeptime);
|
sleeptime);
|
||||||
|
|
||||||
MARS_IO("%d woken up, completed_count = %d fly_count[0] = %d fly_count[1] = %d fly_count[2] = %d\n",
|
MARS_IO("%d woken up, completed_count = %d fly_count[0] = %d fly_count[1] = %d fly_count[2] = %d\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user