summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2015-08-14 11:01:09 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-29 19:33:34 +0200
commit69d340a6e17bb3e801e8ac55681cbc121c0cbafd (patch)
tree645e5953077db0764d0af18d09cec424a4fa7ec8 /fs/jbd2/commit.c
parent567ccdfa9dd7557d6fa6afa3f4346b2fd654f3d6 (diff)
IB/srp: Stop the scsi_eh_<n> and scsi_tmf_<n> threads if login fails
commit bc44bd1d864664f3658352c6aaaa02557d49165d upstream. scsi_host_alloc() not only allocates memory for a SCSI host but also creates the scsi_eh_<n> kernel thread and the scsi_tmf_<n> workqueue. Stop these threads if login fails by calling scsi_host_put(). Reported-by: Konstantin Krotov <kkv@clodo.ru> Fixes: fb49c8bbaae7 ("Remove an extraneous scsi_host_put() from an error path") Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Sagi Grimberg <sagig@mellanox.com> Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions