]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/smb/client/smb2ops.c
cifs: update iface_last_update on each query-and-update
[thirdparty/linux.git] / fs / smb / client / smb2ops.c
index f080fac1b26ee215bd4905d9e5b1197ab905dae4..d9553c2556a290dcea14434e00df9d854e713aa3 100644 (file)
@@ -615,6 +615,7 @@ parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf,
                                 "Empty network interface list returned by server %s\n",
                                 ses->server->hostname);
                rc = -EOPNOTSUPP;
+               ses->iface_last_update = jiffies;
                goto out;
        }
 
@@ -712,7 +713,6 @@ parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf,
 
                ses->iface_count++;
                spin_unlock(&ses->iface_lock);
-               ses->iface_last_update = jiffies;
 next_iface:
                nb_iface++;
                next = le32_to_cpu(p->Next);
@@ -734,6 +734,8 @@ next_iface:
        if ((bytes_left > 8) || p->Next)
                cifs_dbg(VFS, "%s: incomplete interface info\n", __func__);
 
+       ses->iface_last_update = jiffies;
+
 out:
        /*
         * Go through the list again and put the inactive entries