Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2787766rdb; Mon, 5 Feb 2024 19:06:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaId22hzC/WTauqJzC2nqOTQi8dn2MbKid/PVOdXVG21JRHc7tBDJh6uSMhM+UmdV+y7lh X-Received: by 2002:a17:90a:f293:b0:295:b0cd:9be6 with SMTP id fs19-20020a17090af29300b00295b0cd9be6mr1323432pjb.30.1707188811963; Mon, 05 Feb 2024 19:06:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707188811; cv=pass; d=google.com; s=arc-20160816; b=KUONSbO655mp/FIE9RsxrK+id+d3/Zqbs4P8uP0wJJKFhCamC/ILo4A5PPhMHEMzJ1 yMShaIOb4rTG0StUr8G2pu/uXDqzaVpdg4SL2xSdojxVvanFvYG+kDSGyYcFHNwe6Pvh f22pln2hGWA3CHGwZbBUdrGBMQEp7ddxGGRJkiOL4BrCkzpbvuJmJ/xcoKWnndcxi+vu itPDQReeXeu/heoJVLKAX3h3F2rlnrcLqRZkH/5GwiTmO4OcEfvAS8+sePbaSAntnPnD /vy5Cq7kCipe4oYeKkbK7hP1sE98db0rbQBD83yyXe/RcOEipG+CINs5WbOJf4boo+ea mfeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=PMJ17O1CmqNUVr9CqnSAoYW18iVFOklGqfFbXcdL5RQ=; fh=eufC3P/uKWRsVcONDCbeHAaT0S8E0KFfbqeR8FuuF0Q=; b=b+W2Dq6zBXBHCWc8RdKWuufMJyOQASjYIGiKvn3OGNocWQGLaHzgDKQuvSbYxy8I+q fjdu9K5pGY7QeMZSmfRcga1hDC2i2tN+tIxwg87V1n5+7HuhOD7UJy2LVK8H7+DZegkO bfebcRLCbqYL/ZsMQn+tX34Lqld6a3Dv3XzSl9J8N9Vzc9JSBI9P13xXpv49BNX0eWaD mIBTYzTknn9wS9TSlAQ1KnWPnz9Uq7Yo8i02oDP+f0I0B4BxBWXVt1Dh3UN3K7yVHQa5 0q+Sdzcu8Yn8nYhDRrPin0sKe2jbHOlAkFrn4x7ZZLeg68TrCN9+ZKqPrfWZsVBhPS9v BV8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aRu7T3pQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aRu7T3pQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-54232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de X-Forwarded-Encrypted: i=1; AJvYcCWR37b7fBqC6njgv8SbX1WYLMHX5UYZbch4D59zSFNG4djeGx52rI9hYjQ1ErKQWdHThrKqncD6PJ09LTReHNJBJ6SSx23ss05Oe0NESQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 9-20020a17090a098900b0029641697655si337698pjo.133.2024.02.05.19.06.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 19:06:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aRu7T3pQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aRu7T3pQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-54232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0AB81B211C7 for ; Tue, 6 Feb 2024 03:04:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67B6F7317A; Tue, 6 Feb 2024 03:04:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="aRu7T3pQ"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="8rrEetDg"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="aRu7T3pQ"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="8rrEetDg" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B63836E2B0 for ; Tue, 6 Feb 2024 03:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707188652; cv=none; b=FngidlQ+a+E5IS3pFVcF/yo2MnK62sWluJQAOkXONOTXOLF1J+M+1n1H4mD5+ogsf3TI6EVKm4Pe7QFDqL4AeCKPSbEcJllEV7mLb6c0/TAWTixQoysn/abODf8OHw4YnAENcK8yL18yXyai1VXyPbEvlLqQNmTkPKN7t9fU7Xw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707188652; c=relaxed/simple; bh=ww46tD2Od0nYH5J4gwEy8wBZVzCwJinYr6xWvnQIAak=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jposxYoI+tVE3zUPekjYdc9Sy/MoMT3q1rMRenwnpKUcaLX8mt0BPEHRsOdYBFpyM7xJPeFBwF7otQbTGuIbbStoJc++iB7tlC0X66GsgvSGw2PTXrofdooMepv3eXKUGtGnnYw4wW6EM0miEjM4x6UOxhgUmzFK1n2IAyH/ngw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=aRu7T3pQ; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=8rrEetDg; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=aRu7T3pQ; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=8rrEetDg; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 80E37221A0; Tue, 6 Feb 2024 03:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707188648; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PMJ17O1CmqNUVr9CqnSAoYW18iVFOklGqfFbXcdL5RQ=; b=aRu7T3pQG6tTCRTJTiS1mIQsc8jAB5BLHZuqWknkOAoBJsDjEm/msx5XEAKgOMyoxpTYde b7gua5F7B3Rd1c796/UmIHGif7MR3NzUmXen200XdpvdcY9Keg/T7xXx31GrppifP9WgNt /bzte79pyZzQ6bUUE9SJWHaDVx0CVbk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707188648; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PMJ17O1CmqNUVr9CqnSAoYW18iVFOklGqfFbXcdL5RQ=; b=8rrEetDgjr9nA6tQE19WnulbyHkTuwtID7tiyqiWfecIztXvF6vTDQNqDqhVkajdDUNace M51pM2PYDm3ILPBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707188648; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PMJ17O1CmqNUVr9CqnSAoYW18iVFOklGqfFbXcdL5RQ=; b=aRu7T3pQG6tTCRTJTiS1mIQsc8jAB5BLHZuqWknkOAoBJsDjEm/msx5XEAKgOMyoxpTYde b7gua5F7B3Rd1c796/UmIHGif7MR3NzUmXen200XdpvdcY9Keg/T7xXx31GrppifP9WgNt /bzte79pyZzQ6bUUE9SJWHaDVx0CVbk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707188648; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PMJ17O1CmqNUVr9CqnSAoYW18iVFOklGqfFbXcdL5RQ=; b=8rrEetDgjr9nA6tQE19WnulbyHkTuwtID7tiyqiWfecIztXvF6vTDQNqDqhVkajdDUNace M51pM2PYDm3ILPBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 3B851132DD; Tue, 6 Feb 2024 03:04:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id USo/OKWhwWW4GgAAD6G6ig (envelope-from ); Tue, 06 Feb 2024 03:04:05 +0000 Message-ID: <68049531-3114-4afc-b6ba-e226b14b7806@suse.de> Date: Tue, 6 Feb 2024 12:03:59 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 10/12] nvmet-fc: avoid deadlock on delete association path Content-Language: en-US To: Daniel Wagner , James Smart Cc: Keith Busch , Christoph Hellwig , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240131085112.21668-1-dwagner@suse.de> <20240131085112.21668-11-dwagner@suse.de> From: Hannes Reinecke In-Reply-To: <20240131085112.21668-11-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=aRu7T3pQ; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=8rrEetDg X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.48 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-2.98)[99.91%]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: -4.48 X-Rspamd-Queue-Id: 80E37221A0 X-Spam-Flag: NO On 1/31/24 16:51, Daniel Wagner wrote: > When deleting an association the shutdown path is deadlocking because we > try to flush the nvmet_wq nested. Avoid this by deadlock by deferring > the put work into its own work item. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Daniel Wagner > --- > drivers/nvme/target/fc.c | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich