mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user