提交 d06dfbd2 编写于 作者: S Stephen M. Cameron 提交者: Jens Axboe

cciss: Remove unnecessary check in scan_thread

cciss: Remove unnecessary check in scan_thread
Signed-off-by: NStephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 b0e15f6d
...@@ -3386,13 +3386,11 @@ static int scan_thread(void *data) ...@@ -3386,13 +3386,11 @@ static int scan_thread(void *data)
h->busy_scanning = 1; h->busy_scanning = 1;
mutex_unlock(&scan_mutex); mutex_unlock(&scan_mutex);
if (h) { rebuild_lun_table(h, 0, 0);
rebuild_lun_table(h, 0, 0); complete_all(&h->scan_wait);
complete_all(&h->scan_wait); mutex_lock(&scan_mutex);
mutex_lock(&scan_mutex); h->busy_scanning = 0;
h->busy_scanning = 0; mutex_unlock(&scan_mutex);
mutex_unlock(&scan_mutex);
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册