OSDN Git Service

IB/iser: set can_queue earlier to allow setting higher queue depth
authorSagi Grimberg <sagi@grimberg.me>
Wed, 27 Jun 2018 08:03:45 +0000 (11:03 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 29 Jun 2018 18:26:13 +0000 (12:26 -0600)
commit68348441ef7d15e6a902c956e139723c99e065ed
tree857cb10c3dbef0265cdf6ad94e1943d19e443c82
parent24c937b39dfb102860e086f47ab9a58a0f6b0deb
IB/iser: set can_queue earlier to allow setting higher queue depth

We need to set can_queue earlier than when enabling the scsi host.
in a blk-mq enabled environment, the tagset allocation is taken
from can_queue which cannot be modified later. Also, pass an updated
.can_queue to iscsi_session_setup to have enough iscsi tasks allocated
in the session kfifo.

Reported-by: Karandeep Chahal <karandeepchahal@gmail.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/iser/iscsi_iser.c