Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (3 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/fs/cifs/smb2pdu.c

    r31859 r31885  
    19881988        struct list_head tmp_list;
    19891989        int tcon_exist = false;
     1990        int rc;
     1991        int resched = false;
     1992
    19901993
    19911994        /* Prevent simultaneous reconnects that can corrupt tcon->rlist list */
     
    20152018
    20162019        list_for_each_entry_safe(tcon, tcon2, &tmp_list, rlist) {
    2017                 if (!smb2_reconnect(SMB2_INTERNAL_CMD, tcon))
     2020                rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon);
     2021                if (!rc)
    20182022                        cifs_reopen_persistent_handles(tcon);
     2023                else
     2024                        resched = true;
    20192025                list_del_init(&tcon->rlist);
    20202026                cifs_put_tcon(tcon);
     
    20222028
    20232029        cifs_dbg(FYI, "Reconnecting tcons finished\n");
     2030        if (resched)
     2031                queue_delayed_work(cifsiod_wq, &server->reconnect, 2 * HZ);
    20242032        mutex_unlock(&server->reconnect_mutex);
    20252033
Note: See TracChangeset for help on using the changeset viewer.