Whamcloud - gitweb
LU-9859 libcfs: don't save journal_info in dumplog thread. 94/39294/4
authorMr NeilBrown <neilb@suse.de>
Mon, 6 Jul 2020 12:34:44 +0000 (08:34 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 13 Aug 2020 06:04:02 +0000 (06:04 +0000)
commit2eba3f9c3de506d0802d401dda5f45033b96587e
treebd1c801de5230d89f33df65d540ec3b1cb60fb03
parent1ccf112bd2a06db4d98255fd02b07d9edfcf4376
LU-9859 libcfs: don't save journal_info in dumplog thread.

As this thread is started by kthread, it must have
a clean environment and cannot possibly be in a
filesystem transaction.  So current->journal_info
must be NULL, and preserving it serves no purpose.

Also change libcfs_debug_dumplog_internal() to 'static'
to make it clear that it shouldn't be called from
anywhere but this thread.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ie863f792b36792600bef4fe778c46e97ebf046c3
Reviewed-on: https://review.whamcloud.com/39294
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/debug.c
libcfs/libcfs/tracefile.h