]> git.ipfire.org Git - people/ms/linux.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)
commit09c0c0bea500a9ad362589990ee316c9b2482f44
treeb4b259763691d05d1443fc36566166248b98073b
parent4d59ad2995e4128c06d889f9e223099b1f19548e
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