From: Jeff Layton Date: Tue, 11 Jan 2011 12:24:02 +0000 (-0500) Subject: cifs: move locked sections out of DeleteMidQEntry and AllocMidQEntry X-Git-Tag: v2.6.38-rc2~23^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddc8cf8fc718587a3788330bf4f32b379f08b250;p=pandora-kernel.git cifs: move locked sections out of DeleteMidQEntry and AllocMidQEntry In later patches, we're going to need to have finer-grained control over the addition and removal of these structs from the pending_mid_q and we'll need to be able to call the destructor while holding the spinlock. Move the locked sections out of both routines and into the callers. Fix up current callers of DeleteMidQEntry to call a new routine that dequeues the entry and then destroys it. Reviewed-by: Suresh Jayaraman Reviewed-by: Pavel Shilovsky Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed