]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - fs/cifs/file.c
sched: Remove proliferation of wait_on_bit() action functions
[mirror_ubuntu-focal-kernel.git] / fs / cifs / file.c
index e90a1e9aa627642c9ccefd428319f43b3d379c2f..b88b1ade4d3d2589342b3c30217a9aa5ee54b09f 100644 (file)
@@ -3618,13 +3618,6 @@ static int cifs_launder_page(struct page *page)
        return rc;
 }
 
-static int
-cifs_pending_writers_wait(void *unused)
-{
-       schedule();
-       return 0;
-}
-
 void cifs_oplock_break(struct work_struct *work)
 {
        struct cifsFileInfo *cfile = container_of(work, struct cifsFileInfo,
@@ -3636,7 +3629,7 @@ void cifs_oplock_break(struct work_struct *work)
        int rc = 0;
 
        wait_on_bit(&cinode->flags, CIFS_INODE_PENDING_WRITERS,
-                       cifs_pending_writers_wait, TASK_UNINTERRUPTIBLE);
+                       TASK_UNINTERRUPTIBLE);
 
        server->ops->downgrade_oplock(server, cinode,
                test_bit(CIFS_INODE_DOWNGRADE_OPLOCK_TO_L2, &cinode->flags));