commit | 4196b2277d94baee7703987a4a6b9c30214e0da7 | [log] [tgz] |
---|---|---|
author | Hannes Reinecke <hare@suse.de> | Tue Jun 02 10:11:50 2020 +0200 |
committer | Hannes Reinecke <hare@suse.de> | Tue Jun 02 12:38:18 2020 +0200 |
tree | d7875e79d8c4f15bcb334806354ff9477bfa84ce | |
parent | 637bcbcdeb3976d7afc09a1db5f378ba458174ac [diff] |
scsi: avoid pointless memory allocation in scsi_alloc_target() As we already know the index of the requested target in scsi_alloc_target() we can try to fetch it first before trying to allocate a new one. This will save us a pointless memory allocation in case the target is already present and uncontended. Signed-off-by: Hannes Reinecke <hare@suse.de>