diff options
| author | Tony Battersby <[email protected]> | 2015-02-13 17:10:58 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2015-02-17 14:57:54 +0000 |
| commit | 7772855a996ec6e16944b120ab5ce21050279821 (patch) | |
| tree | ee736c6d1316437299d0c6c4948cfbc02f1dff56 /lib/string_helpers.c | |
| parent | sg: fix unkillable I/O wait deadlock with scsi-mq (diff) | |
| download | kernel-7772855a996ec6e16944b120ab5ce21050279821.tar.gz kernel-7772855a996ec6e16944b120ab5ce21050279821.zip | |
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: <[email protected]> # 3.17+
Signed-off-by: Tony Battersby <[email protected]>
Acked-by: Douglas Gilbert <[email protected]>
Tested-by: Douglas Gilbert <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
