The patch titled dm_ioctl: use nonseekable_open has been added to the -mm tree. Its filename is dm_ioctl-use-nonseekable_open.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: dm_ioctl: use nonseekable_open From: Arnd Bergmann <arnd@xxxxxxxxxxxxxxxx> 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. [fweisbec@xxxxxxxxx: drop useless llseek = no_llseek] Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx> Cc: Alasdair G Kergon <agk@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/dm-ioctl.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/md/dm-ioctl.c~dm_ioctl-use-nonseekable_open drivers/md/dm-ioctl.c --- a/drivers/md/dm-ioctl.c~dm_ioctl-use-nonseekable_open +++ a/drivers/md/dm-ioctl.c @@ -1593,6 +1593,7 @@ static long dm_compat_ctl_ioctl(struct f #endif static const struct file_operations _ctl_fops = { + .open = nonseekable_open, .unlocked_ioctl = dm_ctl_ioctl, .compat_ioctl = dm_compat_ctl_ioctl, .owner = THIS_MODULE, _ Patches currently in -mm which might be from arnd@xxxxxxxxxxxxxxxx are linux-next.patch dm_ioctl-use-nonseekable_open.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html