summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorSteve French2005-04-29 07:41:07 +0200
committerLinus Torvalds2005-04-29 07:41:07 +0200
commit848f3fce45d2ba93e10b5e9d65bcae0d9269ad0d (patch)
tree103c63af4e29ee400b0bef59ed5a9d0be65a7a2b /fs/cifs/connect.c
parent[PATCH] cifs: Fix PPC64 compile error (diff)
downloadkernel-qcow2-linux-848f3fce45d2ba93e10b5e9d65bcae0d9269ad0d.tar.gz
kernel-qcow2-linux-848f3fce45d2ba93e10b5e9d65bcae0d9269ad0d.tar.xz
kernel-qcow2-linux-848f3fce45d2ba93e10b5e9d65bcae0d9269ad0d.zip
[PATCH] cifs: Do not interpret oplock break responses as responses to an unrelated command
.. even if the multiplex ids match. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 1f22b85324cf..383e55fa7d26 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -361,9 +361,13 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
mid_q_entry,
qhead);
- if ((mid_entry->mid == smb_buffer->Mid) && (mid_entry->midState == MID_REQUEST_SUBMITTED)) {
- cFYI(1,
- (" Mid 0x%x matched - waking up ",mid_entry->mid));
+ if ((mid_entry->mid == smb_buffer->Mid)
+ && (mid_entry->midState ==
+ MID_REQUEST_SUBMITTED)
+ && (mid_entry->command ==
+ smb_buffer->Command)) {
+ cFYI(1,("Found Mid 0x%x wake up"
+ ,mid_entry->mid));
task_to_wake = mid_entry->tsk;
mid_entry->resp_buf =
smb_buffer;