Skip to content

Commit 71826b0

Browse files
rohiths-msftsmfrench
authored andcommitted
cifs: Fix soft lockup during fsstress
Below traces are observed during fsstress and system got hung. [ 130.698396] watchdog: BUG: soft lockup - CPU#6 stuck for 26s! Cc: [email protected] # 5.13+ Signed-off-by: Rohith Surabattula <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent e3fc065 commit 71826b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/cifs/misc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ cifs_close_deferred_file(struct cifsInodeInfo *cifs_inode)
735735
if (cancel_delayed_work(&cfile->deferred)) {
736736
tmp_list = kmalloc(sizeof(struct file_list), GFP_ATOMIC);
737737
if (tmp_list == NULL)
738-
continue;
738+
break;
739739
tmp_list->cfile = cfile;
740740
list_add_tail(&tmp_list->list, &file_head);
741741
}
@@ -766,7 +766,7 @@ cifs_close_all_deferred_files(struct cifs_tcon *tcon)
766766
if (cancel_delayed_work(&cfile->deferred)) {
767767
tmp_list = kmalloc(sizeof(struct file_list), GFP_ATOMIC);
768768
if (tmp_list == NULL)
769-
continue;
769+
break;
770770
tmp_list->cfile = cfile;
771771
list_add_tail(&tmp_list->list, &file_head);
772772
}

0 commit comments

Comments
 (0)