> @@ -1545,6 +1545,10 @@ cifs_find_tcp_session(struct sockaddr *addr, struct 
> smb_vol *vol)
>  
>       spin_lock(&cifs_tcp_ses_lock);
>       list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) {
> +             if (cifs_use_net_ns()
> +                 && cifs_net_ns(server) == current->nsproxy->net_ns)

The netns_eq helper will handle that.
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to