From: Bart Van Assche Date: Fri, 14 Mar 2014 12:54:11 +0000 (+0100) Subject: IB/srp: Fix a race condition between failing I/O and I/O completion X-Git-Tag: v3.15-rc1~103^2^11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3fe628da2898cf1387105026dfed551ecc25de5;p=pandora-kernel.git IB/srp: Fix a race condition between failing I/O and I/O completion Avoid that srp_terminate_io() can access req->scmnd after it has been cleared by the I/O completion code. Do this by protecting req->scmnd accesses from srp_terminate_io() via locking Signed-off-by: Bart Van Assche Acked-by: Sagi Grimberg Signed-off-by: Roland Dreier --- Reading git-diff-tree failed