From: Matthew Wilcox Date: Mon, 14 Feb 2011 20:55:33 +0000 (-0500) Subject: NVMe: Handle failures differently in nvme_submit_bio_queue() X-Git-Tag: v3.3-rc1~16^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeee322647a67c20d9277c5e02c42b2126ea74bc;p=pandora-kernel.git 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 --- Reading git-diff-tree failed