mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
scsi: target: iscsi: switch to using the crc32c library
Now that the crc32c() library function directly takes advantage of architecture-specific optimizations, it is unnecessary to go through the crypto API. Just use crc32c(). This is much simpler, and it improves performance due to eliminating the crypto API overhead. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20241202010844.144356-20-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
@@ -576,9 +576,6 @@ struct iscsit_conn {
|
||||
spinlock_t state_lock;
|
||||
spinlock_t login_timer_lock;
|
||||
spinlock_t login_worker_lock;
|
||||
/* libcrypto RX and TX contexts for crc32c */
|
||||
struct ahash_request *conn_rx_hash;
|
||||
struct ahash_request *conn_tx_hash;
|
||||
/* Used for scheduling TX and RX connection kthreads */
|
||||
cpumask_var_t conn_cpumask;
|
||||
cpumask_var_t allowed_cpumask;
|
||||
|
||||
Reference in New Issue
Block a user