cifs: Call MID callback before destroying transport
authorLong Li <longli@microsoft.com>
Fri, 5 Apr 2019 21:36:35 +0000 (21:36 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 8 May 2019 04:24:55 +0000 (23:24 -0500)
commit214bab448476dbfb63f55f5afaa93d3894d85233
treee15063527ebd3ff0e751f4e0f48e562a3a110bcc
parentb7972092199f6d4eb10cc44095bbe3931116fc4b
cifs: Call MID callback before destroying transport

When transport is being destroyed, it's possible that some processes may
hold memory registrations that need to be deregistred.

Call them first so nobody is using transport resources, and it can be
destroyed.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c