aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-ioctl.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@relay.de.ibm.com>2010-08-11 23:13:57 -0400
committerAlasdair G Kergon <agk@redhat.com>2010-08-11 23:13:57 -0400
commit402ab352c2c00ba8f90c724565f8cf31210d99cf (patch)
treed24566917708f1624a7af33bc049aa5dfb24e96c /drivers/md/dm-ioctl.c
parent3f77316de0ec0fd208467fbee8d9edc70e2c73b2 (diff)
dm ioctl: use nonseekable_open
The dm control device does not implement read/write, so it has no use for seeking. Using no_llseek prevents falling back to default_llseek, which requires the BKL. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r--drivers/md/dm-ioctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index feb64d65fbfb..3fd8f0e169e7 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -1602,6 +1602,7 @@ static long dm_compat_ctl_ioctl(struct file *file, uint command, ulong u)
1602#endif 1602#endif
1603 1603
1604static const struct file_operations _ctl_fops = { 1604static const struct file_operations _ctl_fops = {
1605 .open = nonseekable_open,
1605 .unlocked_ioctl = dm_ctl_ioctl, 1606 .unlocked_ioctl = dm_ctl_ioctl,
1606 .compat_ioctl = dm_compat_ctl_ioctl, 1607 .compat_ioctl = dm_compat_ctl_ioctl,
1607 .owner = THIS_MODULE, 1608 .owner = THIS_MODULE,