From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com ([74.125.82.51]:37873 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751322AbdE3LuV (ORCPT ); Tue, 30 May 2017 07:50:21 -0400 Subject: Re: [PATCH rdma-next] IB/iser: Fix connection teardown race condition To: Max Gurtovoy , Leon Romanovsky , Doug Ledford References: <20170521161731.22223-1-leon@kernel.org> <98334f53-a7ff-d465-989f-a5ee7add2291@mellanox.com> Cc: linux-rdma@vger.kernel.org, Vladimir Neyelov , stable@vger.kernel.org From: Sagi Grimberg Message-ID: Date: Tue, 30 May 2017 14:50:16 +0300 MIME-Version: 1.0 In-Reply-To: <98334f53-a7ff-d465-989f-a5ee7add2291@mellanox.com> Content-Type: text/plain; charset=windows-1255; format=flowed Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: > Hi Sagi, > > what do you think on this approach ? > we must somehow defend on the NULL deref in case dd_data in iscsi_conn > (the iser_conn) already NULL due to conn_stop call. Sounds like we get conn_stop duing lun scanning. Generally speaking I don't like a global lock for this, but given the non trivial iscsi state machine we can do with that. Reviewed-by: Sagi Grimberg