mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
Cleanup
Those functions might be called on some corner cases without pr_mutex held git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5522 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -523,8 +523,6 @@ static void scst_pr_remove_registrants(struct scst_device *dev)
|
||||
{
|
||||
struct scst_dev_registrant *reg, *tmp_reg;
|
||||
|
||||
scst_assert_pr_mutex_held(dev);
|
||||
|
||||
list_for_each_entry_safe(reg, tmp_reg, &dev->dev_registrants_list,
|
||||
dev_registrants_list_entry) {
|
||||
scst_pr_remove_registrant(dev, reg);
|
||||
@@ -1171,8 +1169,6 @@ void scst_pr_clear_dev(struct scst_device *dev)
|
||||
{
|
||||
TRACE_ENTRY();
|
||||
|
||||
scst_assert_pr_mutex_held(dev);
|
||||
|
||||
scst_pr_remove_registrants(dev);
|
||||
|
||||
kfree(dev->pr_file_name);
|
||||
|
||||
Reference in New Issue
Block a user