Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1561068
| Path | csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jeff Moyer <jmoyer@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [patch] block: add blktrace C events for bio-based drivers |
| Date | Tue, 17 Jan 2017 23:40:02 +0100 |
| Message-ID | <t0KA2-4pl-15@gated-at.bofh.it> (permalink) |
| References | <t0JXk-3Xl-17@gated-at.bofh.it> <t0K6Z-4fM-5@gated-at.bofh.it> |
| X-Original-To | Jens Axboe <axboe@kernel.dk> |
| X-PGP-Keyid | 1F78E1B4 |
| X-PGP-Certkey | F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 |
| X-Pcloadletter | What the f**k does that mean? |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Scanned-By | MIMEDefang 2.74 on 10.5.11.28 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 17 Jan 2017 22:39:09 +0000 (UTC) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-block@vger.kernel.org, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, shli@kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, hch@lst.de |
| X-Original-Date | Tue, 17 Jan 2017 17:39:06 -0500 |
| X-Original-Message-ID | <x49lgu9s451.fsf@segfault.boston.devel.redhat.com> |
| X-Original-References | <x49ziips61y.fsf@segfault.boston.devel.redhat.com> <f3044f42-3134-c577-068f-bd2750528b32@kernel.dk> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1561068 |
Show key headers only | View raw
Jens Axboe <axboe@kernel.dk> writes: > On 01/17/2017 01:57 PM, Jeff Moyer wrote: >> Only a few bio-based drivers actually generate blktrace completion >> (C) events. Instead of changing all bio-based drivers to call >> trace_block_bio_complete, move the tracing to bio_complete, and remove >> the explicit tracing from the few drivers that actually do it. After >> this patch, there is exactly one caller of trace_block_bio_complete >> and one caller of trace_block_rq_complete. More importantly, all >> bio-based drivers now generate C events, which is useful for >> performance analysis. > > I like the change, hate the naming. I'd prefer one of two things: > > - Add bio_endio_complete() instead. That name sucks too, the > important part is flipping the __name() to have a trace > version instead. I had also considered bio_endio_notrace(). > - Mark the bio as trace completed, and keep the naming. Since > it's only off the completion path, that can be just marking > the bi_flags non-atomically. > > I probably prefer the latter. Hmm, okay. I'll take a crack at that. Thanks! Jeff
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[patch] block: add blktrace C events for bio-based drivers Jeff Moyer <jmoyer@redhat.com> - 2017-01-17 23:00 +0100
Re: [patch] block: add blktrace C events for bio-based drivers Jens Axboe <axboe@kernel.dk> - 2017-01-17 23:10 +0100
Re: [patch] block: add blktrace C events for bio-based drivers Jeff Moyer <jmoyer@redhat.com> - 2017-01-17 23:40 +0100
Re: [patch] block: add blktrace C events for bio-based drivers Jeff Moyer <jmoyer@redhat.com> - 2017-01-18 17:10 +0100
csiph-web