File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -737,6 +737,8 @@ cifs_close_deferred_file(struct cifsInodeInfo *cifs_inode)
737
737
list_for_each_entry (cfile , & cifs_inode -> openFileList , flist ) {
738
738
if (delayed_work_pending (& cfile -> deferred )) {
739
739
if (cancel_delayed_work (& cfile -> deferred )) {
740
+ cifs_del_deferred_close (cfile );
741
+
740
742
tmp_list = kmalloc (sizeof (struct file_list ), GFP_ATOMIC );
741
743
if (tmp_list == NULL )
742
744
break ;
@@ -766,6 +768,8 @@ cifs_close_all_deferred_files(struct cifs_tcon *tcon)
766
768
list_for_each_entry (cfile , & tcon -> openFileList , tlist ) {
767
769
if (delayed_work_pending (& cfile -> deferred )) {
768
770
if (cancel_delayed_work (& cfile -> deferred )) {
771
+ cifs_del_deferred_close (cfile );
772
+
769
773
tmp_list = kmalloc (sizeof (struct file_list ), GFP_ATOMIC );
770
774
if (tmp_list == NULL )
771
775
break ;
@@ -799,6 +803,8 @@ cifs_close_deferred_file_under_dentry(struct cifs_tcon *tcon, const char *path)
799
803
if (strstr (full_path , path )) {
800
804
if (delayed_work_pending (& cfile -> deferred )) {
801
805
if (cancel_delayed_work (& cfile -> deferred )) {
806
+ cifs_del_deferred_close (cfile );
807
+
802
808
tmp_list = kmalloc (sizeof (struct file_list ), GFP_ATOMIC );
803
809
if (tmp_list == NULL )
804
810
break ;
You can’t perform that action at this time.
0 commit comments