aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2018-12-12 09:18:11 -0700
committerChristoph Hellwig <[email protected]>2018-12-13 09:59:00 +0100
commitcb5b7262b011cfb793519bf97e54dff5282da23c (patch)
treea038a3b479612f738979529be22391aab88501e5 /lib/mpi/mpi-cmp.c
parent8eb5d89f483141dd076529bf5f6aa235b425886e (diff)
nvme: provide fallback for discard alloc failure
When boxes are run near (or to) OOM, we have a problem with the discard page allocation in nvme. If we fail allocating the special page, we return busy, and it'll get retried. But since ordering is honored for dispatch requests, we can keep retrying this same IO and failing. Behind that IO could be requests that want to free memory, but they never get the chance. Allocate a fixed discard page per controller for a safe fallback, and use that if the initial allocation fails. Signed-off-by: Jens Axboe <[email protected]> Reviewed-by: Keith Busch <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions