Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1474204

Re: [PATCH] autofs - use dentry flags to block walks during expire

From Takashi Iwai <tiwai@suse.de>
Newsgroups linux.kernel
Subject Re: [PATCH] autofs - use dentry flags to block walks during expire
Date 2016-09-01 11:20 +0200
Message-ID <scwka-7Sa-17@gated-at.bofh.it> (permalink)
References <scoZj-1zc-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 01 Sep 2016 03:21:14 +0200,
Ian Kent wrote:
> 
> Somewhere along the way the autofs expire operation has changed to
> hold a spin lock over expired dentry selection. The autofs indirect
> mount expired dentry selection is complicated and quite lengthy so
> it isn't appropriate to hold a spin lock over the operation.
> 
> Commit 47be6184 added a might_sleep() to dput() causing a BUG()
> about this usage to be issued.
> 
> But the spin lock doesn't need to be held over this check, the
> autofs dentry info. flags are enough to block walks into dentrys
> during the expire.
> 
> I've left the direct mount expire as it is (for now) becuase it
> is much simpler and quicker than the indirect mount expire and
> adding spin lock release and re-aquires would do nothing more
> than add overhead.
> 
> Signed-off-by: Ian Kent <raven@themaw.net>

Looks working fine, so far.

Reported-and-tested-by: Takashi Iwai <tiwai@suse.de>


thanks,

Takashi

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] autofs - use dentry flags to block walks during expire Ian Kent <raven@themaw.net> - 2016-09-01 03:30 +0200
  Re: [PATCH] autofs - use dentry flags to block walks during expire Takashi Iwai <tiwai@suse.de> - 2016-09-01 11:20 +0200
  Re: [PATCH] autofs - use dentry flags to block walks during expire NeilBrown <neilb@suse.com> - 2016-09-09 03:40 +0200
    Re: [PATCH] autofs - use dentry flags to block walks during expire Ian Kent <raven@themaw.net> - 2016-09-09 06:00 +0200

csiph-web