aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-07 10:51:26 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 12:26:08 -0400
commit62c2a7d969f30163f733c81158254b3095b23e72 (patch)
tree3e5dd79d874b996757814562b874a18415599a61 /include
parent6e9624b8caec290d28b4c6d9ec75749df6372b87 (diff)
block: push BKL into blktrace ioctls
The blktrace driver currently needs the BKL, but we should not need to take that in the block layer, so just push it down into the driver itself. It is quite likely that the BKL is not actually required in blktrace code and could be removed in a follow-on patch. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blktrace_api.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h
index 23faa67e8022..07c698621ad0 100644
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -5,6 +5,7 @@
5#ifdef __KERNEL__ 5#ifdef __KERNEL__
6#include <linux/blkdev.h> 6#include <linux/blkdev.h>
7#include <linux/relay.h> 7#include <linux/relay.h>
8#include <linux/compat.h>
8#endif 9#endif
9 10
10/* 11/*
@@ -203,6 +204,17 @@ extern int blk_trace_init_sysfs(struct device *dev);
203 204
204extern struct attribute_group blk_trace_attr_group; 205extern struct attribute_group blk_trace_attr_group;
205 206
207struct compat_blk_user_trace_setup {
208 char name[32];
209 u16 act_mask;
210 u32 buf_size;
211 u32 buf_nr;
212 compat_u64 start_lba;
213 compat_u64 end_lba;
214 u32 pid;
215};
216#define BLKTRACESETUP32 _IOWR(0x12, 115, struct compat_blk_user_trace_setup)
217
206#else /* !CONFIG_BLK_DEV_IO_TRACE */ 218#else /* !CONFIG_BLK_DEV_IO_TRACE */
207# define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) 219# define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY)
208# define blk_trace_shutdown(q) do { } while (0) 220# define blk_trace_shutdown(q) do { } while (0)