Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
filesystems
lustre_2_12
0031-LU-14073-ptlrpc-remove-debugging-assert-us...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0031-LU-14073-ptlrpc-remove-debugging-assert-using-segmen.patch of Package lustre_2_12
From 4dfa2fa3587fe2dee1f85a3157263de63913fd80 Mon Sep 17 00:00:00 2001 From: Aurelien Degremont <degremoa@amazon.com> Date: Fri, 13 Nov 2020 16:17:37 +0000 Subject: [PATCH 31/35] LU-14073 ptlrpc: remove debugging assert using segment_eq() In Linux 5.9-rc1 commit 428e2976a5, segment_eq() is removed as it was only used in uaccess_kernel(). But uaccess_kernel() was introduced in Linux v4.12-rc1, which does not cover all supported kernel versions. As segment_eq() is only used in 1 actual debugging call, avoid adding a new configuration test for uaccess_kernel() and just remove the 2 related LASSERTs. Test-Parameters: trivial Signed-off-by: Aurelien Degremont <degremoa@amazon.com> Change-Id: I1595e9b085176d2106a2b958e1fd6f4031cc2f69 Reviewed-on: https://review.whamcloud.com/40797 Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Sebastien Buisson <sbuisson@ddn.com> Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Reviewed-by: Neil Brown <neilb@suse.de> --- lustre/ptlrpc/sec_ctx.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lustre/ptlrpc/sec_ctx.c b/lustre/ptlrpc/sec_ctx.c index 0b3422be584f..dc9f38c7036b 100644 --- a/lustre/ptlrpc/sec_ctx.c +++ b/lustre/ptlrpc/sec_ctx.c @@ -37,13 +37,8 @@ /* Debugging check only needed during development */ #ifdef OBD_CTXT_DEBUG # define ASSERT_CTXT_MAGIC(magic) LASSERT((magic) == OBD_RUN_CTXT_MAGIC) -# define ASSERT_NOT_KERNEL_CTXT(msg) LASSERTF(!segment_eq(get_fs(), get_ds()),\ - msg) -# define ASSERT_KERNEL_CTXT(msg) LASSERTF(segment_eq(get_fs(), get_ds()), msg) #else # define ASSERT_CTXT_MAGIC(magic) do {} while(0) -# define ASSERT_NOT_KERNEL_CTXT(msg) do {} while(0) -# define ASSERT_KERNEL_CTXT(msg) do {} while(0) #endif /* push / pop to root of obd store */ @@ -53,7 +48,6 @@ void push_ctxt(struct lvfs_run_ctxt *save, struct lvfs_run_ctxt *new_ctx) if (new_ctx->dt != NULL) return; - //ASSERT_NOT_KERNEL_CTXT("already in kernel context!\n"); ASSERT_CTXT_MAGIC(new_ctx->magic); OBD_SET_CTXT_MAGIC(save); @@ -80,7 +74,6 @@ void pop_ctxt(struct lvfs_run_ctxt *saved, struct lvfs_run_ctxt *new_ctx) return; ASSERT_CTXT_MAGIC(saved->magic); - ASSERT_KERNEL_CTXT("popping non-kernel context!\n"); LASSERTF(current->fs->pwd.dentry == new_ctx->pwd, "%p != %p\n", current->fs->pwd.dentry, new_ctx->pwd); -- 2.41.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor