summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2022-07-13 07:09:04 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-25 11:15:30 +0200
commit0dd4d4297a82ba82b7fe23d3dbdcd52de846ecca (patch)
treed93407aeeeaf74ec85545cd7cffb97e436d1d1cb /include
parentb856ce5f4b55f752144baf17e9d5c415072652c5 (diff)
dm writecache: set a default MAX_WRITEBACK_JOBS
commit ca7dc242e358e46d963b32f9d9dd829785a9e957 upstream. dm-writecache has the capability to limit the number of writeback jobs in progress. However, this feature was off by default. As such there were some out-of-memory crashes observed when lowering the low watermark while the cache is full. This commit enables writeback limit by default. It is set to 256MiB or 1/16 of total system memory, whichever is smaller. Cc: stable@vger.kernel.org Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions