Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4694117ybl; Mon, 9 Dec 2019 15:15:14 -0800 (PST) X-Google-Smtp-Source: APXvYqx5rGzHob3gQLsFtSPHLAiowd5w3eaiGCoYwpcJJ1Dg8hJc3cdr2/GtHHbBcFmQpUJuyKwg X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr23027066otr.82.1575933314715; Mon, 09 Dec 2019 15:15:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575933314; cv=none; d=google.com; s=arc-20160816; b=TnNYjGAxSMCUcGoE7hVVFekBVuvGRdzZjJYqABxhshv0Dny4WuIMKhDBhayZ3wsGsl zUCr6Oi30/Wrihku9DYlOnCUyt7+1NCg16CXWpC13AsQaG0RM4JKa9VqPqLJ0lEFWiQj ZIz5NS5vhDzNmaXGMSM9NkbpCCHGCWaFLEa+bA8fh/zxu+691FQGTEbYV1mCJ/7SCLM3 U0gdcSxGss+ljZAcqnGZRYD5qur8Hbe+HPJsr6IVSaoMXkfowRtpQAk0PmrpVqbqsFRw 1Ox93Jgpq2aDEO1zv/aouqrxGoEuE1LeYE45QkXcmyoYr2GuFxiomhhyPZ7hUelNTHgi +aEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=XByPhQ/GK+1qe7eG/ANSprBhc5tw+oXQP23irQKqo9E=; b=V1JP9+oE+PwjxLlKHP6nuT5C7HhpUpWrpW0Anq4MVUgu0GTr8UaXg0JA2A9QWnwUDI TJBxHu0hKApEiQoZ8fswP1Z6T38TArGQDDV8lJkIth5Jls076cgXHkr0pWNH8TW8XNNN PboiInARjWKjCTt3eLpulhwm8Fi38NLOpOIYE6me2GMCs0aexxqW0OZ/oH0pprjpFiE5 h3wOOfSlUOOZm3S39h0vgm2LqRQP2nCYAaj365fwFU6yMnyApi4xZODQ5eqOBMGWO2Bv fCtyb9WzDtdAUL4h9MzgOBzHQ+jsaOt74/HwC4ZTRkw/ZREg4oGWhtwUKrCRpb7dHSSv 9Wcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=bnN78Mx1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si753803otk.201.2019.12.09.15.15.01; Mon, 09 Dec 2019 15:15:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=bnN78Mx1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbfLIXN2 (ORCPT + 99 others); Mon, 9 Dec 2019 18:13:28 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:60540 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726743AbfLIXN1 (ORCPT ); Mon, 9 Dec 2019 18:13:27 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xB9N9N7v005846; Mon, 9 Dec 2019 23:13:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2019-08-05; bh=XByPhQ/GK+1qe7eG/ANSprBhc5tw+oXQP23irQKqo9E=; b=bnN78Mx15gz3HKX9NF8lqUe34sEVPOsmrbfmlPa2P5iGp5yzqK2qdjfz70MLYiFI0IgA mERbIxdn03HbpgrJ50r5ISj7Y2UjtAPK6HyifY/uaDJ6pXD/oKGxKdQvASHWRZM4a5b3 Js4TLaB2bQ0CEJUgXdvp4Nlp0KWy9bLU6rxHnusluHf7u2P3mbpPJtsJzoym5K0Ra2lG lYCxbthMUTHDH1BxKK79TTR32L2Kma9/HYcQF9UEo6DHRbYKhHU104FSHa8r+1bv5hjX SiFvmYzXEzb+OGMo8vhrK4fT4A1CJDtaETmb/nlhOd4Ud1IOvKMwNbgBNcYVekgnmS40 5w== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2wrw4myjgq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 09 Dec 2019 23:13:10 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xB9N9UmS053443; Mon, 9 Dec 2019 23:11:10 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2wsv8arn0a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 09 Dec 2019 23:11:09 +0000 Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id xB9NB3qx010457; Mon, 9 Dec 2019 23:11:03 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Dec 2019 15:11:02 -0800 To: "wubo \(T\)" Cc: Lee Duncan , "cleech\@redhat.com" , "jejb\@linux.ibm.com" , "martin.petersen\@oracle.com" , "open-iscsi\@googlegroups.com" , "linux-scsi\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" , Ulrich Windl , Mingfangsen , "liuzhiqiang \(I\)" Subject: Re: [PATCH V4] scsi: avoid potential deadlock in iscsi_if_rx func From: "Martin K. Petersen" Organization: Oracle Corporation References: Date: Mon, 09 Dec 2019 18:11:00 -0500 In-Reply-To: (wubo's message of "Wed, 20 Nov 2019 13:26:17 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9466 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=912 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912090182 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9466 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=976 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912090182 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wubo, > In iscsi_if_rx func, after receiving one request through > iscsi_if_recv_msg func, iscsi_if_send_reply will be called to try to > reply the request in do-loop. If the return of iscsi_if_send_reply > func return -EAGAIN all the time, one deadlock will occur. > > For example, a client only send msg without calling recvmsg func, then > it will result in the watchdog soft lockup. The details are given as > follows, > Signed-off-by: Bo Wu > Reviewed-by: Zhiqiang Liu > Reviewed-by: Lee Duncan I haven't seen a Reviewed-by: from Lee on this patch. -- Martin K. Petersen Oracle Linux Engineering