cifs: move mid finding into separate routine
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:05 +0000 (15:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:05 +0000 (15:29 -0400)
commitea1f4502fc939b64807f9ab0eca259321047fe83
treed572678f31748fa8e4012747008cad6e892b3f9f
parent89482a56a079f01c2f4c709f8e23fbf7eeda1b43
cifs: move mid finding into separate routine

Begin breaking up find_cifs_mid into smaller pieces. The parts that
coalesce T2 responses don't really need to be done under the
GlobalMid_lock anyway. Create a new function that just finds the
mid on the list, and then later takes it off the list if the entire
response has been received.

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