summaryrefslogtreecommitdiffstats
path: root/fs/ext2/Makefile
diff options
context:
space:
mode:
authorVaibhav Nagarnaik2018-09-08 00:31:29 +0200
committerSteven Rostedt (VMware)2018-09-18 00:15:11 +0200
commit83f365554e47997ec68dc4eca3f5dce525cd15c3 (patch)
tree66a9f5651bb4d5b99a2ccb9e639b1fbd76487524 /fs/ext2/Makefile
parentLinux 4.19-rc4 (diff)
downloadkernel-qcow2-linux-83f365554e47997ec68dc4eca3f5dce525cd15c3.tar.gz
kernel-qcow2-linux-83f365554e47997ec68dc4eca3f5dce525cd15c3.tar.xz
kernel-qcow2-linux-83f365554e47997ec68dc4eca3f5dce525cd15c3.zip
ring-buffer: Allow for rescheduling when removing pages
When reducing ring buffer size, pages are removed by scheduling a work item on each CPU for the corresponding CPU ring buffer. After the pages are removed from ring buffer linked list, the pages are free()d in a tight loop. The loop does not give up CPU until all pages are removed. In a worst case behavior, when lot of pages are to be freed, it can cause system stall. After the pages are removed from the list, the free() can happen while the work is rescheduled. Call cond_resched() in the loop to prevent the system hangup. Link: http://lkml.kernel.org/r/20180907223129.71994-1-vnagarnaik@google.com Cc: stable@vger.kernel.org Fixes: 83f40318dab00 ("ring-buffer: Make removal of ring buffer pages atomic") Reported-by: Jason Behmer <jbehmer@google.com> Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'fs/ext2/Makefile')
0 files changed, 0 insertions, 0 deletions