lkml.org 
[lkml]   [2013]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Writeback threads and freezable
Date
On Wednesday, December 18, 2013 06:43:43 AM Tejun Heo wrote:

[...]

> If filesystems need an indication that the underlying device is no
> longer functional, please go ahead and add it, but please keep in mind
> all these are completely asynchronous. Nothing guarantees you that
> such events would happen in any specific order. IOW, you can be at
> *ANY* point in your warm unplug path and the device is hot unplugged,
> which essentially forces all the code paths to be ready for the worst,
> and that's exactly why there isn't much effort in trying to separate
> out warm and hot unplug paths.

Yes. Devices can go away at any point without notice. Even PCI devices
that have never been assumed to be hot-removable. Any piece of code in the
kernel needs to be prepared to deal with such situations.

Thanks,
Rafael


\
 
 \ /
  Last update: 2013-12-18 23:41    [W:0.093 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site