summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/smbsrv/smb_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/fs/smbsrv/smb_read.c')
-rw-r--r--usr/src/uts/common/fs/smbsrv/smb_read.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/src/uts/common/fs/smbsrv/smb_read.c b/usr/src/uts/common/fs/smbsrv/smb_read.c
index 2f1c86af4b..70ad0a8b4b 100644
--- a/usr/src/uts/common/fs/smbsrv/smb_read.c
+++ b/usr/src/uts/common/fs/smbsrv/smb_read.c
@@ -385,11 +385,8 @@ smb_com_read_andx(smb_request_t *sr)
* function. We can't move the fid lookup here because lock-and-read
* requires the fid to do locking before attempting the read.
*
- * Reading from a file should break oplocks on the file to LEVEL_II.
- * A call to smb_oplock_break(SMB_OPLOCK_BREAK_TO_LEVEL_II) is not
- * required as it is a no-op. If there's anything greater than a
- * LEVEL_II oplock on the file, the oplock MUST be owned by the ofile
- * on which the read is occuring and therefore would not be broken.
+ * Reading from a file does not break oplocks because any need for
+ * breaking before read is handled in open.
*
* Returns errno values.
*/