mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-08-18 02:22:47 -07:00
cciss: Remove unnecessary check in scan_thread
cciss: Remove unnecessary check in scan_thread Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
1 parent
b0e15f6db1
commit
d06dfbd236
1 file changed
+5
-7
@@ -3386,13 +3386,11 @@ static int scan_thread(void *data)
|
||||
h->busy_scanning = 1;
|
||||
mutex_unlock(&scan_mutex);
|
||||
|
||||
if (h) {
|
||||
rebuild_lun_table(h, 0, 0);
|
||||
complete_all(&h->scan_wait);
|
||||
mutex_lock(&scan_mutex);
|
||||
h->busy_scanning = 0;
|
||||
mutex_unlock(&scan_mutex);
|
||||
}
|
||||
rebuild_lun_table(h, 0, 0);
|
||||
complete_all(&h->scan_wait);
|
||||
mutex_lock(&scan_mutex);
|
||||
h->busy_scanning = 0;
|
||||
mutex_unlock(&scan_mutex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user