fix blktrace API (missing commit)
PATCH 1/1 fix blktrace API (missing commit)
From: Martin Peschke <[email protected]>
The git commit 11914a53d2ec2974a565311af327b8983d8c820d added __BLK_TA_ABORT to blktrace_api.h. A corresponding addition to the blktrace tools repository has been missing, breaking the API. Blkparse complained:
"Bad fs action 40010011"
--- blktrace_api.h | 2 ++ 1 file changed, 2 insertions(+)
blktrace_api.h +2 -0
@@ -48,6 +48,7 @@ enum { __BLK_TA_SPLIT,/* bio was split */ __BLK_TA_BOUNCE,/* bio was bounced */ __BLK_TA_REMAP,/* bio was remapped */ + __BLK_TA_ABORT,/* request aborted */ __BLK_TA_DRV_DATA, /* binary driver data */ };
@@ -78,6 +79,7 @@ enum blktrace_notify {#define BLK_TA_SPLIT (__BLK_TA_SPLIT)#define BLK_TA_BOUNCE (__BLK_TA_BOUNCE)#define BLK_TA_REMAP (__BLK_TA_REMAP | BLK_TC_ACT(BLK_TC_QUEUE)) +#define BLK_TA_ABORT (__BLK_TA_ABORT | BLK_TC_ACT(BLK_TC_QUEUE))#define BLK_TA_DRV_DATA (__BLK_TA_DRV_DATA | BLK_TC_ACT(BLK_TC_DRV_DATA))#define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))
PATCH 1/1 fix blktrace API (missing commit)
Hi Jens,
here is one of two fixes, which have not made it into blktrace yet. I posted them end of last year
http://marc.info/?l=linux-btrace&m2754289122259&w=2
Please apply. Thanks,
Martin
From: Martin Peschke <[email protected]>
The git commit 11914a53d2ec2974a565311af327b8983d8c820d added __BLK_TA_ABORT to blktrace_api.h. A corresponding addition to the blktrace tools repository has been missing, breaking the API. Blkparse complained:
"Bad fs action 40010011"
--- blktrace_api.h | 2 ++ 1 file changed, 2 insertions(+)
blktrace_api.h +2 -0
@@ -48,6 +48,7 @@ enum { __BLK_TA_SPLIT,/* bio was split */ __BLK_TA_BOUNCE,/* bio was bounced */ __BLK_TA_REMAP,/* bio was remapped */ + __BLK_TA_ABORT,/* request aborted */ __BLK_TA_DRV_DATA, /* binary driver data */ };
@@ -78,6 +79,7 @@ enum blktrace_notify {#define BLK_TA_SPLIT (__BLK_TA_SPLIT)#define BLK_TA_BOUNCE (__BLK_TA_BOUNCE)#define BLK_TA_REMAP (__BLK_TA_REMAP | BLK_TC_ACT(BLK_TC_QUEUE)) +#define BLK_TA_ABORT (__BLK_TA_ABORT | BLK_TC_ACT(BLK_TC_QUEUE))#define BLK_TA_DRV_DATA (__BLK_TA_DRV_DATA | BLK_TC_ACT(BLK_TC_DRV_DATA))#define BLK_TN_PROCESS (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))
Jens Axboe
AppliedQuoted 4 lines · Martin Peschke
Hi Jens,
here is one of two fixes, which have not made it into blktrace yet. I posted them end of last year
http://marc.info/?l=linux-btrace&m2754289122259&w=2
Applied both of them, thanks for reposting!
Signature · 1 line
Jens Axboe