[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140305040929.GA31130@kroah.com>
Date: Tue, 4 Mar 2014 20:09:29 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Roland Dreier <roland@...nel.org>
Cc: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Shaohua Li <shaohua.li@...el.com>,
Arjan van de Ven <arjan@...radead.org>
Subject: Re: [PATCH] Revert "driver core: synchronize device shutdown"
On Tue, Mar 04, 2014 at 07:57:51PM -0800, Roland Dreier wrote:
> From: Roland Dreier <roland@...estorage.com>
>
> This reverts commit 401097ea4b89846d66ac78f7f108d49c2e922d9c. The
> original changelog said:
>
> A patch series to make .shutdown execute asynchronously. Some drivers's
> shutdown can take a lot of time. The patches can help save some shutdown
> time. The patches use Arjan's async API.
>
> This patch:
>
> synchronize all tasks submitted by .shutdown
>
> However, I'm not able to find any evidence that any other patches from
> this series were applied, nor am I able to find any async tasks that are
> scheduled in a .shutdown context.
>
> On the other hand, we see occasional hangs on shutdown that appear to be
> caused by the async_synchronize_full() in device_shutdown() waiting
> forever for the async probing in sd if a SCSI disk shows up at just the
> wrong time — the system starts the probe, but begins shutting down and
> tears down too much of the SCSI driver to finish the probe.
>
> If we had any async shutdown tasks, I guess the right fix would be to
> create a "shutdown" async domain and have device_shutdown() only wait
> for that domain. But since there apparently are no async shutdown
> tasks, we can just revert the waiting.
>
> Signed-off-by: Roland Dreier <roland@...estorage.com>
Hm, no one seems to have said anything for the past 5 years about this.
Shaohua and Arjan, any objection to this being applied?
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists