common/module: use patient module removal
authorLuis Chamberlain <mcgrof@kernel.org>
Tue, 21 Sep 2021 17:49:52 +0000 (10:49 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 26 Sep 2021 12:48:16 +0000 (20:48 +0800)
commitb47ea0c69737cfbfd0d0884e373a5ede8906046a
tree34a1f7af941804b2ad78ce10478c8402e8d8be40
parent410a2e3186a1e8632dfb43a64176d5d99497c228
common/module: use patient module removal

Now that scsi_debug has been using the patient module removal
for a while, let's generalize its use for the other use cases.
This likey will fix some odd false positives due to races.

Suggested-by: Eryu Guan <guan@eryu.me>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/module