next.git - net-next plumbings</title> <meta name='generator' content='cgit v1.2.3-54-g00ecf'/> <meta name='robots' content='noindex, nofollow'/> <link rel='stylesheet' type='text/css' href='/cgit.css'/> <script type='text/javascript' src='/cgit.js'></script> <link rel='shortcut icon' href='http://distanz.ch/favicon.ico'/> <link rel='alternate' title='Atom feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/sound/usb/usx2y/usb_stream.h?h=master' type='application/atom+xml'/> <link rel='vcs-git' href='git://git.distanz.ch/linux/net-next.git' title='net-next.git Git repository'/> <link rel='vcs-git' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/> </head> <body> <div id='cgit'><table id='header'> <tr> <td class='logo' rowspan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td> <td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='62906027091f1d02de44041524f0769f60bb9cf3'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master' selected='selected'>master</option> <option value='nds-private-remove'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=62906027091f1d02de44041524f0769f60bb9cf3'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/sound/usb/usx2y/usb_stream.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/usb/usx2y/usb_stream.h'> <input type='hidden' name='id' value='62906027091f1d02de44041524f0769f60bb9cf3'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?id=62906027091f1d02de44041524f0769f60bb9cf3'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound?id=62906027091f1d02de44041524f0769f60bb9cf3'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/usb?id=62906027091f1d02de44041524f0769f60bb9cf3'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y?id=62906027091f1d02de44041524f0769f60bb9cf3'>usx2y</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3'>usb_stream.h</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='62906027091f1d02de44041524f0769f60bb9cf3'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Nicholas Piggin <npiggin@gmail.com></td><td class='right'>2016-12-25 13:00:30 +1000</td></tr> <tr><th>committer</th><td>Linus Torvalds <torvalds@linux-foundation.org></td><td class='right'>2016-12-25 11:54:48 -0800</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3'>62906027091f1d02de44041524f0769f60bb9cf3</a> (<a href='/cgit.cgi/linux/net-next.git/patch/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=62906027091f1d02de44041524f0769f60bb9cf3'>6444171af03e463bb0123a392d7b91a0ae6a1f40</a> /<a href='/cgit.cgi/linux/net-next.git/tree/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3'>sound/usb/usx2y/usb_stream.h</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/usx2y/usb_stream.h?id=6326fec1122cde256bd2a8c63f2606e08e44ce1d'>6326fec1122cde256bd2a8c63f2606e08e44ce1d</a> (<a href='/cgit.cgi/linux/net-next.git/diff/sound/usb/usx2y/usb_stream.h?id=62906027091f1d02de44041524f0769f60bb9cf3&id2=6326fec1122cde256bd2a8c63f2606e08e44ce1d'>diff</a>)</td></tr></table> <div class='commit-subject'>mm: add PageWaiters indicating tasks are waiting for a page bit</div><div class='commit-msg'>Add a new page flag, PageWaiters, to indicate the page waitqueue has tasks waiting. This can be tested rather than testing waitqueue_active which requires another cacheline load. This bit is always set when the page has tasks on page_waitqueue(page), and is set and cleared under the waitqueue lock. It may be set when there are no tasks on the waitqueue, which will cause a harmless extra wakeup check that will clears the bit. The generic bit-waitqueue infrastructure is no longer used for pages. Instead, waitqueues are used directly with a custom key type. The generic code was not flexible enough to have PageWaiters manipulation under the waitqueue lock (which simplifies concurrency). This improves the performance of page lock intensive microbenchmarks by 2-3%. Putting two bits in the same word opens the opportunity to remove the memory barrier between clearing the lock bit and testing the waiters bit, after some work on the arch primitives (e.g., ensuring memory operand widths match and cover both bits). Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Bob Peterson <rpeterso@redhat.com> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Lutomirski <luto@kernel.org> Cc: Andreas Gruenbacher <agruenba@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=62906027091f1d02de44041524f0769f60bb9cf3'>Diffstat</a> (limited to 'sound/usb/usx2y/usb_stream.h')</div><table summary='diffstat' class='diffstat'>