While debugging another issue today, Steve and I noticed that if a subdir for a file share is already mounted on the client, any new mount of any other subdir (or the file share root) results in sharing the cifs superblock. This could likely result in issues in other code paths as well. Based on cursory code review, I think the CIFS_MOUNT_USE_PREFIX_PATH flag is always used in conjunction with the cifs_sb->prepath field. Attached patch sets this flag as soon as the prepath field is set in cifs_sb. Please let me know if any of the above assumptions are wrong, or if more needs to be done as a part of this fix. -- Regards, Shyam
Attachment:
0001-cifs-Set-CIFS_MOUNT_USE_PREFIX_PATH-flag-on-setting-.patch
Description: Binary data