ib_srpt: Add more TRACE_ENTRY()/TRACE_EXIT() macros

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3534 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-06-04 17:48:14 +00:00
parent bd8b360569
commit edf466ba9f
+8
View File
@@ -2167,8 +2167,12 @@ static struct srpt_rdma_ch *srpt_find_channel(struct srpt_device *sdev,
*/
static void srpt_release_channel(struct srpt_rdma_ch *ch)
{
TRACE_ENTRY();
WARN_ON(ch->state != CH_RELEASING);
schedule_work(&ch->release_work);
TRACE_EXIT();
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) && !defined(BACKPORT_LINUX_WORKQUEUE_TO_2_6_19)
@@ -2181,6 +2185,8 @@ static void srpt_release_channel_work(struct work_struct *w)
struct srpt_rdma_ch *ch;
struct srpt_device *sdev;
TRACE_ENTRY();
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) && !defined(BACKPORT_LINUX_WORKQUEUE_TO_2_6_19)
ch = ctx;
#else
@@ -2223,6 +2229,8 @@ static void srpt_release_channel_work(struct work_struct *w)
wake_up(&sdev->ch_releaseQ);
kfree(ch);
TRACE_EXIT();
}
#if !defined(CONFIG_SCST_PROC)