summaryrefslogtreecommitdiff
path: root/lockme.h
blob: 7cce97bb55330fbe1e755f11865836e25d8ddbe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LOCKME_H
#define LOCKME_H

#include <sys/mman.h>

#include "die.h"

static inline void xlockme(void)
{
	if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0)
		panic("Cannot lock pages!\n");
}

static inline void xunlockme(void)
{
	munlockall();
}

#endif /* LOCKME_H */
e <hare@suse.de>2016-08-22 10:54:08 +0200 committerNicholas Bellinger <nab@linux-iscsi.org>2016-10-21 01:19:42 -0700 commitb04bf5833e8a0d6ae4e3f7b35b30c4ab6ff7ea1b (patch) tree7ca7337e670df9c48fe55a10525c39e957fdd04b parent1b4c59b7a1d0b9d8019254a5f2e35b2663f49a9e (diff)
target/tcm_fc: print command pointer in debug message
When allocating a new command we should add the pointer to the debug statements; that allows us to match this with other debug statements for handling data. Signed-off-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat