Date: Wed, 26 Aug 2015 03:33:34 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287152 - head/sys/dev/filemon Message-ID: <201508260333.t7Q3XYth021852@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Wed Aug 26 03:33:34 2015 New Revision: 287152 URL: https://svnweb.freebsd.org/changeset/base/287152 Log: Remove unneeded inuse list locking in filemon_comment(). Sponsored by: EMC / Isilon Storage Division MFC after: 2 weeks Modified: head/sys/dev/filemon/filemon_wrapper.c Modified: head/sys/dev/filemon/filemon_wrapper.c ============================================================================== --- head/sys/dev/filemon/filemon_wrapper.c Wed Aug 26 03:32:47 2015 (r287151) +++ head/sys/dev/filemon/filemon_wrapper.c Wed Aug 26 03:33:34 2015 (r287152) @@ -114,9 +114,6 @@ filemon_comment(struct filemon *filemon) /* Load timestamp before locking. Less accurate but less contention. */ getmicrotime(&now); - /* Grab a read lock on the filemon inuse list. */ - filemon_lock_read(); - /* Lock the found filemon structure. */ filemon_filemon_lock(filemon); @@ -129,9 +126,6 @@ filemon_comment(struct filemon *filemon) /* Unlock the found filemon structure. */ filemon_filemon_unlock(filemon); - - /* Release the read lock. */ - filemon_unlock_read(); } static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508260333.t7Q3XYth021852>