lkml.org 
[lkml]   [2014]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] Detaching mounts on unlink for 3.15
On Thu, Apr 17, 2014 at 11:12:03PM +0100, Al Viro wrote:
> * *KERNEL* vfsmounts; anything without MNT_INTERNAL is fair game
> as far as ordering of fs shutdown is concerned. If it wasn't MNT_INTERNAL,
> and we'd done mntput() before destroying some data structures needed for

s/before/just before/, of course ;-)

> fs shutdown, we had been fucked anyway - no warranties that mntput() had
> been the final one. Moreover, that means going through kern_unmount() or
> simple_release_fs(). Which is trivially dealt with by providing
> mntput_sync(mnt) that *will* wait and using it in those two. Again, if
> we have an extra reference (e.g. stuffed into a struct file, etc.) -
> we can't rely on mntput() being final.


\
 
 \ /
  Last update: 2014-04-18 00:41    [W:0.191 / U:0.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site