diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2019-11-08 09:29:01 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-11-09 03:37:24 +0100 |
commit | 0eccce866f84db2cd23e1f28737920aa7b9e70d7 (patch) | |
tree | 7d80a39d9a4ca71f3bc793a6cac715a434fbf90d /drivers/target/sbp | |
parent | scsi: core: Fix scsi_get/set_resid() interface (diff) | |
download | linux-0eccce866f84db2cd23e1f28737920aa7b9e70d7.tar.xz linux-0eccce866f84db2cd23e1f28737920aa7b9e70d7.zip |
scsi: target: tcmu: Prevent memory reclaim recursion
Prevent recursion into the IO path under low memory conditions by using
GFP_NOIO in place of GFP_KERNEL when allocating a new command with
tcmu_alloc_cmd() and user ring space with tcmu_get_empty_block().
Link: https://lore.kernel.org/r/20191108082901.417950-1-damien.lemoal@wdc.com
Reported-by: Masato Suzuki <masato.suzuki@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Acked-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/sbp')
0 files changed, 0 insertions, 0 deletions