diff options
author | Steve French <smfrench@austin.rr.com> | 2005-04-29 01:41:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-29 01:41:07 -0400 |
commit | 848f3fce45d2ba93e10b5e9d65bcae0d9269ad0d (patch) | |
tree | 103c63af4e29ee400b0bef59ed5a9d0be65a7a2b /fs/cifs/connect.c | |
parent | d0724714fd49aeec1383b94807174de7e96021bf (diff) |
[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.c | 10 |
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) | |||
361 | mid_q_entry, | 361 | mid_q_entry, |
362 | qhead); | 362 | qhead); |
363 | 363 | ||
364 | if ((mid_entry->mid == smb_buffer->Mid) && (mid_entry->midState == MID_REQUEST_SUBMITTED)) { | 364 | if ((mid_entry->mid == smb_buffer->Mid) |
365 | cFYI(1, | 365 | && (mid_entry->midState == |
366 | (" Mid 0x%x matched - waking up ",mid_entry->mid)); | 366 | MID_REQUEST_SUBMITTED) |
367 | && (mid_entry->command == | ||
368 | smb_buffer->Command)) { | ||
369 | cFYI(1,("Found Mid 0x%x wake up" | ||
370 | ,mid_entry->mid)); | ||
367 | task_to_wake = mid_entry->tsk; | 371 | task_to_wake = mid_entry->tsk; |
368 | mid_entry->resp_buf = | 372 | mid_entry->resp_buf = |
369 | smb_buffer; | 373 | smb_buffer; |