diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-10-24 17:07:04 -0700 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-10 21:56:02 -0800 |
commit | a34a8bfd4e6358c646928320d37b0425c0762f8a (patch) | |
tree | 650dd57be0460f439551baca3514009b4287bb12 /drivers/md/bcache/closure.h | |
parent | cdd972b164be8fc69f6ee8533c5a07b621da74c7 (diff) | |
download | talos-obmc-linux-a34a8bfd4e6358c646928320d37b0425c0762f8a.tar.gz talos-obmc-linux-a34a8bfd4e6358c646928320d37b0425c0762f8a.zip |
bcache: Refactor journalling flow control
Making things less asynchronous that don't need to be - bch_journal()
only has to block when the journal or journal entry is full, which is
emphatically not a fast path. So make it a normal function that just
returns when it finishes, to make the code and control flow easier to
follow.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/closure.h')
-rw-r--r-- | drivers/md/bcache/closure.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/closure.h b/drivers/md/bcache/closure.h index 00039924ea9d..ab011f03801f 100644 --- a/drivers/md/bcache/closure.h +++ b/drivers/md/bcache/closure.h @@ -642,7 +642,7 @@ do { \ #define continue_at_nobarrier(_cl, _fn, _wq) \ do { \ set_closure_fn(_cl, _fn, _wq); \ - closure_queue(cl); \ + closure_queue(_cl); \ return; \ } while (0) |