block: ioctl fixes for v5.5

My work on eliminating the fs/compat_ioctl.c and block/compat_ioctl.c
files for linux-5.6 uncovered a couple of bugs that should be fixed
as soon as possible:

- the pktcdvd driver was broken in linux-5.5 with my previous
  cleanup series and needs a oneline patch.

- multiple ioctl commands were added in the past two years without
  a compat handler, I'm adding one patch per kernel version that
  needs the fixes to be backported.

Signed-off-by: Arnd Bergmann <>
compat_ioctl: block: handle Persistent Reservations

These were added to blkdev_ioctl() in linux-5.5 but not
blkdev_compat_ioctl, so add them now.

Cc: <> # v4.4+
Fixes: bbd3e064362e ("block: add an API for Persistent Reservations")
Signed-off-by: Arnd Bergmann <>
1 file changed