commit | c548e62bcf6adc7066ff201e9ecc88e536dd8890 | [log] [tgz] |
---|---|---|
author | Ming Lei <[email protected]> | Fri Jan 22 10:33:08 2021 +0800 |
committer | Martin K. Petersen <[email protected]> | Thu Mar 04 17:36:59 2021 -0500 |
tree | 526fdd3f62253edc5c9512207fa76655991d7c5c | |
parent | bf2c4282a10a92810ba83e85677a5273d6ca0df5 [diff] |
scsi: sbitmap: Move allocation hint into sbitmap Allocation hint should have belonged to sbitmap. Also, when sbitmap's depth is high and there is no need to use mulitple wakeup queues, user can benefit from percpu allocation hint too. Move allocation hint into sbitmap, then SCSI device queue can benefit from allocation hint when converting to plain sbitmap. Convert vhost/scsi.c to use sbitmap allocation with percpu alloc hint. This is more efficient than the previous approach. Link: https://lore.kernel.org/r/[email protected] Cc: Omar Sandoval <[email protected]> Cc: Kashyap Desai <[email protected]> Cc: Sumanesh Samanta <[email protected]> Cc: Ewan D. Milne <[email protected]> Cc: Mike Christie <[email protected]> Cc: [email protected] Tested-by: Sumanesh Samanta <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>