diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2014-10-16 10:50:19 +0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@redhat.com> | 2014-10-30 13:11:50 +0300 |
commit | 89baaa570ab0b476db09408d209578cfed700e9f (patch) | |
tree | ce7d44eae139ca6b5c03026e8b471727f0df1fc1 /crypto | |
parent | f5ee37bd31678d6cb2313631f203794b5c25e862 (diff) | |
download | linux-89baaa570ab0b476db09408d209578cfed700e9f.tar.xz |
libceph: use memalloc flags for net IO
This patch has ceph's lib code use the memalloc flags.
If the VM layer needs to write data out to free up memory to handle new
allocation requests, the block layer must be able to make forward progress.
To handle that requirement we use structs like mempools to reserve memory for
objects like bios and requests.
The problem is when we send/receive block layer requests over the network
layer, net skb allocations can fail and the system can lock up.
To solve this, the memalloc related flags were added. NBD, iSCSI
and NFS uses these flags to tell the network/vm layer that it should
use memory reserves to fullfill allcation requests for structs like
skbs.
I am running ceph in a bunch of VMs in my laptop, so this patch was
not tested very harshly.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions