From: Tony Battersby Date: Fri, 13 Feb 2015 17:10:58 +0000 (-0500) Subject: sg: fix EWOULDBLOCK errors with scsi-mq X-Git-Tag: fixes-v4.0-rc1~23^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7772855a996ec6e16944b120ab5ce21050279821;p=pandora-kernel.git sg: fix EWOULDBLOCK errors with scsi-mq With scsi-mq enabled, userspace programs can get unexpected EWOULDBLOCK (a.k.a. EAGAIN) errors when submitting commands to the SCSI generic driver. Fix by calling blk_get_request() with GFP_KERNEL instead of GFP_ATOMIC. Note: to avoid introducing a potential deadlock, this patch should be applied after the patch titled "sg: fix unkillable I/O wait deadlock with scsi-mq". Cc: # 3.17+ Signed-off-by: Tony Battersby Acked-by: Douglas Gilbert Tested-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed