RDMA/iwcm: Simplify cm_event_handler()
authorBart Van Assche <bvanassche@acm.org>
Wed, 5 Jun 2024 14:50:59 +0000 (08:50 -0600)
committerLeon Romanovsky <leon@kernel.org>
Sun, 9 Jun 2024 08:15:27 +0000 (11:15 +0300)
commite1168f09b3314992f1c5251f3793102035da7237
tree19e144a9a539d8801056d4bb672ce3dc66334c8e
parentfc772e38bce5635bc1d7efae7198a305504ad112
RDMA/iwcm: Simplify cm_event_handler()

queue_work() can test efficiently whether or not work is pending. Hence,
simplify cm_event_handler() by always calling queue_work() instead of only
if the list with pending work is empty.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240605145117.397751-4-bvanassche@acm.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/iwcm.c