diff options
author | Rohith Surabattula <rohiths@microsoft.com> | 2021-05-05 13:56:47 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-05-20 05:11:26 +0300 |
commit | 860b69a9d77160d21ca00357fd6c5217f9d41fb1 (patch) | |
tree | 5668410148272ff6aaacdc8418320f79b14f503f /fs/cifs/cifsfs.c | |
parent | e83aa3528a38bddae182a35d0efb5a6c35143c1c (diff) | |
download | linux-860b69a9d77160d21ca00357fd6c5217f9d41fb1.tar.xz |
Fix kernel oops when CONFIG_DEBUG_ATOMIC_SLEEP is enabled.
Removed oplock_break_received flag which was added to achieve
synchronization between oplock handler and open handler by earlier commit.
It is not needed because there is an existing lock open_file_lock to achieve
the same. find_readable_file takes open_file_lock and then traverses the
openFileList. Similarly, cifs_oplock_break while closing the deferred
handle (i.e cifsFileInfo_put) takes open_file_lock and then sends close
to the server.
Added comments for better readability.
Signed-off-by: Rohith Surabattula <rohiths@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index d7ea9c5fe0f8..2ffcb29d5c8f 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -133,7 +133,7 @@ struct workqueue_struct *cifsiod_wq; struct workqueue_struct *decrypt_wq; struct workqueue_struct *fileinfo_put_wq; struct workqueue_struct *cifsoplockd_wq; -struct workqueue_struct *deferredclose_wq; +struct workqueue_struct *deferredclose_wq; __u32 cifs_lock_secret; /* |