Message ID | 20220720031210.17801-7-matthew.ruffell@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=YTAAiVMD; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lngk32SmTz9s2R for <incoming@patchwork.ozlabs.org>; Wed, 20 Jul 2022 13:12:43 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1oE08Z-0008HP-11; Wed, 20 Jul 2022 03:12:35 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <matthew.ruffell@canonical.com>) id 1oE08U-0008AO-K6 for kernel-team@lists.ubuntu.com; Wed, 20 Jul 2022 03:12:30 +0000 Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id EF9F13F11D for <kernel-team@lists.ubuntu.com>; Wed, 20 Jul 2022 03:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1658286749; bh=KjSY5ubDg0IC/QEKFdYTqLvZGJCDOKcORcSwv+Tn+Bg=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YTAAiVMDcMIcxCIel3tr/lkVKdcLM1nsKd+wXFPH6Xz1+H+uaGmk8ANSx7GnQD5je 1XWwquT8W5o9d8emMYDRrvydc736iStFn8HE37jR8DeTfcFSRTkRY0FHQpnfKl0iPi ECph2NZBAfohne0rVKLGvOYQwlwV6pF2sooPYjKAmTXEe/1zvSYf7IBWxxWKllx8Hl Crtz1UKisqXyvoFChSwSagkg5SBMNt2vh2VwO71Or/skIc0PcK4xAUhJidGDMTyQKG 41LIgMAd0/YhodpgIcv1vOX8i/00G8xLGaTfeybEdADHZIVvThFGcCi3dinsG6shep Iz3A5qReE7OdA== Received: by mail-pl1-f197.google.com with SMTP id i9-20020a170902cf0900b0016d1e277547so670649plg.0 for <kernel-team@lists.ubuntu.com>; Tue, 19 Jul 2022 20:12:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KjSY5ubDg0IC/QEKFdYTqLvZGJCDOKcORcSwv+Tn+Bg=; b=gye7+om3R31+TSlR5vV0k6/22MkiLx3+VP6f2TCJLMFkA44p9ee5a8SNam0GTNy0T7 EWsDykBjPC7gFrNbsD5Ox8I79n+wOhslqvQwOb85nDo6T4F5Cszetq7A4y+wLqm+hdXB nEGl9I1nyWHVn4uTn4Rhuce7UjWdsDgNETgxyNpLQLsvwjnH7/5dCRsc6UpOQy7KgKwz tZyYw9Atj1/2JD5tOPT+ouweFkW7aiSYuTpyl0M5KtuGej/jkR+/S44MhprGavCsFTAj RIOjOzDzwd1Nk0bwUbj5FAeSlmMigPIwDsrC+bT5ZoT/nFkJnp2kpHni8ajcR6y8Tekn iffA== X-Gm-Message-State: AJIora8eSfY2Glzaw4AQpTTZ4u1CFKk8ZA4Q+8YmrlLYPc1p6NvDfk6B DamxmTfQoDU0klmgzXf97Wo2GzhNN6g44BHP0kgVhuy/CK8tLGEpomXb5B9eIuW/MX5DBpfThgb LtT+K3dAAc31hb2rPR8R/G1uU0N5NAJkHGG+oHLAFfg== X-Received: by 2002:a17:90a:ce96:b0:1f1:feb7:28b4 with SMTP id g22-20020a17090ace9600b001f1feb728b4mr2897147pju.53.1658286748332; Tue, 19 Jul 2022 20:12:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/nWp3KPq9nUQ3eo/Ty3Ft2/2WDBopoSaJji0F+QyPAJ3d59XcmOl04wBIN8Xi/uS3ikstTg== X-Received: by 2002:a17:90a:ce96:b0:1f1:feb7:28b4 with SMTP id g22-20020a17090ace9600b001f1feb728b4mr2897126pju.53.1658286748021; Tue, 19 Jul 2022 20:12:28 -0700 (PDT) Received: from desktop.. (125-239-70-54-fibre.sparkbb.co.nz. [125.239.70.54]) by smtp.gmail.com with ESMTPSA id i2-20020a17090ac40200b001efbc3ad105sm331812pjt.54.2022.07.19.20.12.26 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 20:12:27 -0700 (PDT) From: Matthew Ruffell <matthew.ruffell@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][F][PATCH V2 6/6] nbd: fix io hung while disconnecting device Date: Wed, 20 Jul 2022 15:12:10 +1200 Message-Id: <20220720031210.17801-7-matthew.ruffell@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220720031210.17801-1-matthew.ruffell@canonical.com> References: <20220720031210.17801-1-matthew.ruffell@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
nbd: requests can become stuck when disconnecting from server with qemu-nbd
|
expand
|
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 6b165101f84b..aff24ecb2898 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -1380,7 +1380,7 @@ static int nbd_start_device_ioctl(struct nbd_device *nbd, struct block_device *b static void nbd_clear_sock_ioctl(struct nbd_device *nbd, struct block_device *bdev) { - sock_shutdown(nbd); + nbd_clear_sock(nbd); __invalidate_device(bdev, true); nbd_bdev_reset(bdev); if (test_and_clear_bit(NBD_RT_HAS_CONFIG_REF,