summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2011-05-12 19:51:41 +0200
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2011-11-04 20:53:03 +0100
commitb77954cbddff28d55a36fad3c16f4daebb0f01df (patch)
tree94f992d9c3390b61e11209f7b0e31440f67ec9c4 /ipc
parentNVMe: Use an IDA to allocate minor numbers (diff)
downloadlinux-b77954cbddff28d55a36fad3c16f4daebb0f01df.tar.xz
linux-b77954cbddff28d55a36fad3c16f4daebb0f01df.zip
NVMe: Handle failures from memory allocations in nvme_setup_prps
If any of the memory allocations in nvme_setup_prps fail, handle it by modifying the passed-in data length to reflect the number of bytes we are actually able to send. Also allow the caller to specify the GFP flags they need; for user-initiated commands, we can use GFP_KERNEL allocations. The various callers are updated to handle this possibility; the main I/O path is already prepared for this possibility (as it may happen due to nvme_map_bio being unable to map all the segments of the I/O). The other callers return -ENOMEM instead of doing partial I/Os. Reported-by: Andi Kleen <andi@firstfloor.org> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions