summaryrefslogtreecommitdiff
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2015-06-15 15:53:10 +0200
committerSteven Rostedt <rostedt@goodmis.org>2015-06-15 12:03:12 -0400
commitb44754d8262d3aab842998cf747f44fe6090be9f (patch)
tree193f1c3d9efe32692b28b8815b689fd7caf91d65 /Documentation/filesystems
parent33d657d1381025542b84b79d5c7b548598e40a4d (diff)
ring_buffer: Allow to exit the ring buffer benchmark immediately
It takes a while until the ring_buffer_benchmark module is removed when the ring buffer hammer is running. It is because it takes few seconds and kthread_should_stop() is not being checked. This patch adds the check for kthread termination into the producer. It uses the existing @kill_test flag to finish the kthreads as cleanly as possible. It disables printing the "ERROR" message when the kthread is going. It makes sure that producer does not go into the 10sec sleep when it is being killed. Finally, it does not call wait_to_die() when kthread_should_stop() already returns true. Link: http://lkml.kernel.org/r/20150615155428.GD3135@pathway.suse.cz Signed-off-by: Petr Mladek <pmladek@suse.cz> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/filesystems')
0 files changed, 0 insertions, 0 deletions