CIFS: Move oplock break to ops struct
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:

committato da
Steve French

parent
2e44b28878
commit
95a3f2f377
@@ -3404,6 +3404,7 @@ void cifs_oplock_break(struct work_struct *work)
|
||||
oplock_break);
|
||||
struct inode *inode = cfile->dentry->d_inode;
|
||||
struct cifsInodeInfo *cinode = CIFS_I(inode);
|
||||
struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
|
||||
int rc = 0;
|
||||
|
||||
if (inode && S_ISREG(inode->i_mode)) {
|
||||
@@ -3431,10 +3432,8 @@ void cifs_oplock_break(struct work_struct *work)
|
||||
* disconnected since oplock already released by the server
|
||||
*/
|
||||
if (!cfile->oplock_break_cancelled) {
|
||||
rc = CIFSSMBLock(0, tlink_tcon(cfile->tlink), cfile->fid.netfid,
|
||||
current->tgid, 0, 0, 0, 0,
|
||||
LOCKING_ANDX_OPLOCK_RELEASE, false,
|
||||
cinode->clientCanCacheRead ? 1 : 0);
|
||||
rc = tcon->ses->server->ops->oplock_response(tcon, &cfile->fid,
|
||||
cinode);
|
||||
cFYI(1, "Oplock release rc = %d", rc);
|
||||
}
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user