mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Cleanup: spin_is_locked() makes no sense on UP systems
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4885 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1095,9 +1095,11 @@ static int scst_local_queuecommand_lck(struct scsi_cmnd *SCpnt,
|
||||
* DIRECT contexts disabled, so this option doesn't have any
|
||||
* real effect.
|
||||
*/
|
||||
#ifdef CONFIG_SMP
|
||||
if (spin_is_locked(SCpnt->device->host->host_lock))
|
||||
scst_cmd_init_done(scst_cmd, SCST_CONTEXT_THREAD);
|
||||
else
|
||||
#endif
|
||||
scst_cmd_init_done(scst_cmd, scst_estimate_context());
|
||||
#else
|
||||
scst_cmd_init_done(scst_cmd, SCST_CONTEXT_THREAD);
|
||||
|
||||
Reference in New Issue
Block a user