bio: speedup submit_thread termination

This commit is contained in:
Thomas Schoebel-Theuer 2017-01-19 09:06:31 +01:00
parent b17944a512
commit b7a770c91f

View File

@ -698,7 +698,7 @@ int bio_submit_thread(void *data)
#endif
wait_event_interruptible_timeout(
brick->submit_event,
brick->submitted,
brick->submitted || brick_thread_should_stop(),
HZ / 2);
brick->submitted = false;