Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e0018bc authored by Bryan O'Sullivan's avatar Bryan O'Sullivan Committed by Linus Torvalds
Browse files

[PATCH] IB/ipath: remove some #if 0 code related to lockable memory



Signed-off-by: default avatarDave Olson <dave.olson@qlogic.com>
Signed-off-by: default avatarBryan O'Sullivan <bryan.osullivan@qlogic.com>
Cc: "Michael S. Tsirkin" <mst@mellanox.co.il>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 35783ec0
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -58,17 +58,6 @@ static int __get_user_pages(unsigned long start_page, size_t num_pages,
	size_t got;
	size_t got;
	int ret;
	int ret;


#if 0
	/*
	 * XXX - causes MPI programs to fail, haven't had time to check
	 * yet
	 */
	if (!capable(CAP_IPC_LOCK)) {
		ret = -EPERM;
		goto bail;
	}
#endif

	lock_limit = current->signal->rlim[RLIMIT_MEMLOCK].rlim_cur >>
	lock_limit = current->signal->rlim[RLIMIT_MEMLOCK].rlim_cur >>
		PAGE_SHIFT;
		PAGE_SHIFT;