Lines Matching refs:oplock
342 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock,
402 rc = server->ops->open(xid, &oparms, oplock, buf);
450 struct tcon_link *tlink, __u32 oplock,
501 * If the server returned a read oplock and we have mandatory brlocks,
502 * set oplock level to None.
504 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
505 cifs_dbg(FYI, "Reset oplock val from read to None due to mand locks\n");
506 oplock = 0;
514 if (fid->pending_open->oplock != CIFS_OPLOCK_NO_CHANGE && oplock)
515 oplock = fid->pending_open->oplock;
519 server->ops->set_fid(cfile, fid, oplock);
588 * Always potentially wait for oplock handler. See _cifsFileInfo_put().
605 * reference, wait for any running oplock break handler of the file
610 * @offload: not offloaded on close and oplock breaks
654 * again and get at least level II oplock.
695 __u32 oplock;
757 oplock = REQ_OPLOCK;
759 oplock = 0;
768 file->f_flags, &oplock, &fid.netfid, xid);
797 rc = cifs_nt_open(full_path, inode, cifs_sb, tcon, file->f_flags, &oplock, &fid,
805 cfile = cifs_new_fileinfo(&fid, file, tlink, oplock, data.symlink_target);
815 if ((oplock & CIFS_CREATE_ACTION) && !posix_open_ok && tcon->unix_ext) {
894 __u32 oplock;
939 oplock = REQ_OPLOCK;
941 oplock = 0;
956 oflags, &oplock, &cfile->fid.netfid, xid);
999 rc = server->ops->open(xid, &oparms, &oplock, NULL);
1002 rc = server->ops->open(xid, &oparms, &oplock, NULL);
1010 cifs_dbg(FYI, "oplock: %d\n", oplock);
1043 * If the server returned a read oplock and we have mandatory brlocks,
1044 * set oplock level to None.
1046 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) {
1047 cifs_dbg(FYI, "Reset oplock val from read to None due to mand locks\n");
1048 oplock = 0;
1051 server->ops->set_fid(cfile, &cfile->fid, oplock);
1086 if ((cifs_sb->ctx->closetimeo && cinode->oplock == CIFS_CACHE_RHW_FLG)
1976 cifs_dbg(FYI, "Set no oplock for inode=%p due to mand locks\n",
1978 CIFS_I(inode)->oplock = 0;
3806 * Zap the cache and set oplock/lease level to NONE to avoid
3813 cinode->oplock = 0;
4278 * if we don't have level II oplock because the server can delay mtime
4776 ((cifsInode->oplock & CIFS_CACHE_RW_FLG) != 0 && from_readdir)) {
4828 * optimize away the read when we have an oplock, and we're not
4941 cifs_dbg(FYI, "Reset oplock to None for inode=%p due to mand locks\n",
4943 cinode->oplock = 0;
4968 * When oplock break is received and there are no active