Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\torture.c Create Date:2022-07-28 13:50:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Clean up torture module

Proto:bool torture_cleanup_begin(void)

Type:bool

Parameter:Nothing

706  mutex_lock( & fullstop_mutex)
707  If READ_ONCE(fullstop) == System shutdown with torture running. Then
708  pr_warn("Concurrent rmmod and shutdown illegal!\n")
709  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
710  schedule_timeout_uninterruptible(10)
711  Return true
713  WRITE_ONCE(fullstop, Normal rmmod of torture. )
714  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
715  Shut down the shutdown task. Say what??? Heh! This can happen if* the torture module gets an rmmod before the shutdown time arrives. ;-)
716  Stop the shuffling.
717  Cleanup after the torture_stutter kthread.
718  Clean up after online/offline testing.
719  Return false
Caller
NameDescribe
rcu_torture_cleanup
rcu_perf_cleanup
lock_torture_cleanupForward reference.