commit | b3fe628da2898cf1387105026dfed551ecc25de5 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bvanassche@acm.org> | Fri Mar 14 13:54:11 2014 +0100 |
committer | Roland Dreier <roland@purestorage.com> | Mon Mar 24 10:05:31 2014 -0700 |
tree | 6df463ae165b00ab3ca3f005e98853f8c97e2565 | |
parent | ac72d766a8e44d782bd5480fc953ab6025c82e92 [diff] |
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 <bvanassche@acm.org> Acked-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>