lkml.org 
[lkml]   [2011]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] blktrace: Remove blk_fill_rwbs_rq.
On 2011-03-03 02:29, Tao Ma wrote:
> From: Tao Ma <boyu.mt@taobao.com>
>
> If we enable trace events to trace block actions, We use
> blk_fill_rwbs_rq to analyze the corresponding actions
> in request's cmd_flags, but we only choose the minor 2 bits
> from it, so most of other flags(e.g, REQ_SYNC) are missing.
> For example, with a sync write we get:
> write_test-2409 [001] 160.013869: block_rq_insert: 3,64 W 0 () 258135 + 8 [write_test]
>
> Since now we have integrated the flags of both bio and request,
> it is safe to pass rq->cmd_flags directly to blk_fill_rwbs and
> blk_fill_rwbs_rq isn't needed any more.
>
> With this patch, after a sync write we get:
> write_test-2417 [000] 226.603878: block_rq_insert: 3,64 WS 0 () 258135 + 8 [write_test]

Thanks, I applied this to for-linus so we can sneak it into 2.6.38
hopefully.


--
Jens Axboe



\
 
 \ /
  Last update: 2011-03-03 16:57    [from the cache]
©2003-2011 Jasper Spaans