]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Reduce lock spam in XioPortal SubmitQueue.
authorMatt Benjamin <matt@cohortfs.com>
Tue, 16 Dec 2014 16:38:06 +0000 (11:38 -0500)
committerMatt Benjamin <matt@cohortfs.com>
Wed, 14 Jan 2015 21:44:17 +0000 (16:44 -0500)
commitd16e1817b61f785aa323859ca3206f6e45d4687e
tree8e2e4e6f02ce9d27dc4de3c3d10738294361dee1
parentf276145fb65d0739bbea2204db42499c9a61dd96
Reduce lock spam in XioPortal SubmitQueue.

In SubmitQueue::deq, scan up to nlanes, exit immediately with
found work, recalling last lane.

Yield to Accelio iff a full scan finds no work.

xio: avoid starving run loop, don't stop loop in shutdown()
     Fix 2 issues flagged in review by Alex Rosenbaum.
     * In the XioPortal main loop, the recent reduce lock contention change
       also made easier to starve Accelio under steady send work.  Restore
       the original behavior.
     * Remove the call to xio_context_stop_loop() in XioPortal::shutdown(),
       to ensure that Accelio can finish cleaning up.

Move queue guard check.
Release der spinlock.

Signed-off-by: Matt Benjamin <matt@cohortfs.com>
src/msg/xio/XioPortal.h