Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6831761imu; Wed, 14 Nov 2018 07:36:41 -0800 (PST) X-Google-Smtp-Source: AJdET5c4c7nFcQTF2PiWdhIhy+m3s7KfODkzfMoElEKQXUghJYOYTQ8OjIkA/pPSauY0xzAUvEkN X-Received: by 2002:a62:e704:: with SMTP id s4mr2235312pfh.124.1542209801715; Wed, 14 Nov 2018 07:36:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542209801; cv=none; d=google.com; s=arc-20160816; b=AtVliT4XBn50Y3CGzWwyYWZd+6ahOUjtOXozOCAS+BkwTOTXEiDLKkPYZms+q0jhCw NArrnHJYTDWnxKfpkd2HA7s4/8/csJyCltRwkGbtL3VQaD8YgUtdM7delun4lUIr5GTM wE2qlO2M6jQ3CiKizKrZNvMcHIq5LvcnqgPcLQ5+oNhtGRCYIDSk3YPJh9fYTpM/js2/ WfuLvy7HEkLmifY3erpsoqDlXN/bLaKDWoT6wtNbHOAq3N5aHlDoYmE7ju60DDFZ+5jE xjG+SYb6jSL0139iIw09E3op0ZCaRYLyTL6kHM3eAQNpzjxm5KhczIR+pxio6YkwtPHL rGZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=KovhrJ5mf2ITVGYDQWakuRXHCd9htz73iPtGZlR3KJM=; b=K6awQzD7gu8cZt0is2Rsjzh6AySAAf7j1A58v5g/4iqzozr2yM6KL5CarShHfxIX0b bSOZ/D5ggn76vNfOi2akI6n70rjG921YZQ6e6W1Vn27EcFOmCb2raRuKwHx/suT/ZM+y DsVgnRa2/5+kW2go9tE6lPKLUYivktAG3I54KGXGcUzHC02kemOrmI0I76A3OGuwS1XN xHgrcFXLCyQDN3eNyQjj/vwFQHiM/5TLa/CMubjWb5THpa5BATZ2+ah24nUFqngZWG3v KQiU8vPeEtp6L/BQKY/PjllMP6DtwSCoQU8fArKil980Xt3s9KZ4/rFZ7D+Qtsidxqfd BhSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si7764140pgd.285.2018.11.14.07.36.26; Wed, 14 Nov 2018 07:36:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387548AbeKOBjM (ORCPT + 99 others); Wed, 14 Nov 2018 20:39:12 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:47912 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S2387520AbeKOBjM (ORCPT ); Wed, 14 Nov 2018 20:39:12 -0500 Received: (qmail 2405 invoked by uid 2102); 14 Nov 2018 10:35:28 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 14 Nov 2018 10:35:28 -0500 Date: Wed, 14 Nov 2018 10:35:28 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Martin Petersen , "Zengtao (B)" cc: "jejb@linux.vnet.ibm.com" , "gregkh@linuxfoundation.org" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "usb-storage@lists.one-eyed-alien.net" Subject: RE: scsi_set_medium_removal timeout issue In-Reply-To: <678F3D1BB717D949B966B68EAEB446ED1F1BC495@dggemm526-mbx.china.huawei.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Nov 2018, Zengtao (B) wrote: > I just enabled the scsi log in the middle of the umount operation, otherwise I can't > reproduce the issue when the scsi log is enabled. > > >from the beginning. In any case, it wasn't what I wanted. I asked you to > >post the dmesg log, not the SCSI log. > > Please refer to the new attachment for dmesg log. Heh, yes, I see now. Martin, shouldn't sd_release() call sd_sync_cache() in the same way that sd_shutdown() does, before it calls scsi_set_medium_removal()? Alan Stern