diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-12-07 16:09:59 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-12-15 18:11:44 -0800 |
commit | 7414dde0a6c3a958e26141991bf5c75dc58d28b2 (patch) | |
tree | 13cf3044f5372fdc7be1b1ee7c63e57b79dd320f /mm/slob.c | |
parent | 3f562a0b8f0b47c4315e08bccd6a0b2d7f5aae1b (diff) | |
download | linux-7414dde0a6c3a958e26141991bf5c75dc58d28b2.tar.bz2 |
IB/iser: Fix race between iser connection teardown and scsi TMFs
In certain scenarios (target kill with live IO) scsi TMFs may race
with iser RDMA teardown, which might cause NULL dereference on iser IB
device handle (which might have been freed). In this case we take a
conditional lock for TMFs and check the connection state (avoid
introducing lock contention in the IO path). This is indeed best
effort approach, but sufficient to survive multi targets sudden death
while heavy IO is inflight.
While we are on it, add a nice kernel-doc style documentation.
Reported-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'mm/slob.c')
0 files changed, 0 insertions, 0 deletions