]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srp: Fix possible send queue overflow
authorSagi Grimberg <sagig@mellanox.com>
Tue, 1 Dec 2015 18:18:03 +0000 (10:18 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 7 Dec 2015 22:20:11 +0000 (17:20 -0500)
commit10f7fddf6451cadac36998c8d07f401672361246
treeb4b259763691d05d1443fc36566166248b98073b
parentfbcf8f7156d87d6883227a720cfa8debe913bc52
IB/srp: Fix possible send queue overflow

When using work request based memory registration (fast_reg)
we must reserve SQ entries for registration and invalidation
in addition to send operations. Each IO consumes 3 SQ entries
(registration, send, invalidation) so we need to allocate 3x
larger send-queue instead of 2x.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c