diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-02-14 15:55:33 -0500 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 15:52:58 -0400 |
commit | eeee322647a67c20d9277c5e02c42b2126ea74bc (patch) | |
tree | 6e0c901136effb10e301a5fb0479389bb6818531 /lib/memory-notifier-error-inject.c | |
parent | 897cfe1ce7db152fa6dde576f4213a6160bf6502 (diff) |
NVMe: Handle failures differently in nvme_submit_bio_queue()
Return -EBUSY if the queue is full or -ENOMEM if we failed to allocate
memory (or map a scatterlist). Also use GFP_ATOMIC to allocate the
nvme_bio and move the locking to the callers of nvme_submit_bio_queue().
In nvme_make_request(), don't permit an I/O to jump the queue -- if the
congestion list already has an entry, just add to the tail, rather than
trying to submit.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions