Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'block-5.5-20191226' of git://git.kernel.dk/linux-block

Pull block fixes from Jens Axboe:
"Only thing here are the changes from Arnd from last week, which now
have the appropriate header include to ensure they actually compile if
COMPAT is enabled"

* tag 'block-5.5-20191226' of git://git.kernel.dk/linux-block:
compat_ioctl: block: handle Persistent Reservations
compat_ioctl: block: handle add zone open, close and finish ioctl
compat_ioctl: block: handle BLKGETZONESZ/BLKGETNRZONES
compat_ioctl: block: handle BLKREPORTZONE/BLKRESETZONE
pktcdvd: fix regression on 64-bit architectures

+17 -1
+16
block/compat_ioctl.c
··· 6 6 #include <linux/compat.h> 7 7 #include <linux/elevator.h> 8 8 #include <linux/hdreg.h> 9 + #include <linux/pr.h> 9 10 #include <linux/slab.h> 10 11 #include <linux/syscalls.h> 11 12 #include <linux/types.h> ··· 355 354 * but we call blkdev_ioctl, which gets the lock for us 356 355 */ 357 356 case BLKRRPART: 357 + case BLKREPORTZONE: 358 + case BLKRESETZONE: 359 + case BLKOPENZONE: 360 + case BLKCLOSEZONE: 361 + case BLKFINISHZONE: 362 + case BLKGETZONESZ: 363 + case BLKGETNRZONES: 358 364 return blkdev_ioctl(bdev, mode, cmd, 359 365 (unsigned long)compat_ptr(arg)); 360 366 case BLKBSZSET_32: ··· 409 401 case BLKTRACETEARDOWN: /* compatible */ 410 402 ret = blk_trace_ioctl(bdev, cmd, compat_ptr(arg)); 411 403 return ret; 404 + case IOC_PR_REGISTER: 405 + case IOC_PR_RESERVE: 406 + case IOC_PR_RELEASE: 407 + case IOC_PR_PREEMPT: 408 + case IOC_PR_PREEMPT_ABORT: 409 + case IOC_PR_CLEAR: 410 + return blkdev_ioctl(bdev, mode, cmd, 411 + (unsigned long)compat_ptr(arg)); 412 412 default: 413 413 if (disk->fops->compat_ioctl) 414 414 ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg);
+1 -1
drivers/block/pktcdvd.c
··· 2707 2707 .release = pkt_close, 2708 2708 .ioctl = pkt_ioctl, 2709 2709 #ifdef CONFIG_COMPAT 2710 - .ioctl = pkt_compat_ioctl, 2710 + .compat_ioctl = pkt_compat_ioctl, 2711 2711 #endif 2712 2712 .check_events = pkt_check_events, 2713 2713 };