scst_vdisk: Avoid that fileio_alloc_and_parse() locks up in tasklet context if low on memory

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7920 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-02-12 03:08:39 +00:00
parent 70150cb912
commit 6dc08eb5b6

View File

@@ -3092,7 +3092,8 @@ static int fileio_alloc_and_parse(struct scst_cmd *cmd)
TRACE_ENTRY();
p = kmem_cache_zalloc(vdisk_cmd_param_cachep, cmd->cmd_gfp_mask);
p = kmem_cache_zalloc(vdisk_cmd_param_cachep,
in_interrupt() ? GFP_ATOMIC : cmd->cmd_gfp_mask);
if (!p) {
scst_set_busy(cmd);
goto out_err;