Message ID | 5250C79A.8060103@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Mike Snitzer |
Headers | show |
diff --git a/Driver/dm-writeboost-daemon.c b/Driver/dm-writeboost-daemon.c index 65974e2..cf790bf 100644 --- a/Driver/dm-writeboost-daemon.c +++ b/Driver/dm-writeboost-daemon.c @@ -29,7 +29,6 @@ int flush_proc(void *data) cache->flush_wait_queue, (!list_empty(&cache->flush_queue)), msecs_to_jiffies(100)); - spin_lock_irqsave(&cache->flush_queue_lock, flags); /* * flush daemon can exit @@ -37,6 +36,8 @@ int flush_proc(void *data) */ if (kthread_should_stop()) return 0; + else + spin_lock_irqsave(&cache->flush_queue_lock, flags); } > I will send you next email with more bugs that I found in your code