diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-05-22 07:09:13 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-24 03:11:33 +0000 |
commit | 3c1105df699188a70f5c17dc0795affea388bca7 (patch) | |
tree | bfbcfaaae2fdfd16b2fcdb57710b9affbf183c49 /fs/xfs/xfs_arch.h | |
parent | 724d9f1cfba0cb16a7151333b501e8f7885450d8 (diff) |
cifs: don't call mid_q_entry->callback under the Global_MidLock (try #5)
Minor revision to the last version of this patch -- the only difference
is the fix to the cFYI statement in cifs_reconnect.
Holding the spinlock while we call this function means that it can't
sleep, which really limits what it can do. Taking it out from under
the spinlock also means less contention for this global lock.
Change the semantics such that the Global_MidLock is not held when
the callback is called. To do this requires that we take extra care
not to have sync_mid_result remove the mid from the list when the
mid is in a state where that has already happened. This prevents
list corruption when the mid is sitting on a private list for
reconnect or when cifsd is coming down.
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/xfs/xfs_arch.h')
0 files changed, 0 insertions, 0 deletions