cifs: find mid earlier in receive codepath
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:31 +0000 (15:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:31 +0000 (15:29 -0400)
commitc8054ebdb6903208b83aa59c387b16d5129492d5
tree14ccf83e7b917303d1724818142e2cd07f13cc2d
parent2a37ef94bb153fad13cbb091aab679d7c8b9a67f
cifs: find mid earlier in receive codepath

In order to receive directly into a preallocated buffer, we need to ID
the mid earlier, before the bulk of the response is read. Call the mid
finding routine as soon as we're able to read the mid.

Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/connect.c