mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user