block: add an API for Persistent Reservations
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Oct 2015 12:10:48 +0000 (14:10 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 21 Oct 2015 20:46:56 +0000 (14:46 -0600)
commitbbd3e064362e5057cc4799ba2e4d68c7593e490b
tree94c1efd47cf05eaf940e3381bb4eb9df421ae001
parentd8e4bb8103df02a2c509868732dc93fb66110a12
block: add an API for Persistent Reservations

This commits adds a driver API and ioctls for controlling Persistent
Reservations s/genericly/generically/ at the block layer.  Persistent
Reservations are supported by SCSI and NVMe and allow controlling who gets
access to a device in a shared storage setup.

Note that we add a pr_ops structure to struct block_device_operations
instead of adding the members directly to avoid bloating all instances
of devices that will never support Persistent Reservations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Documentation/block/pr.txt [new file with mode: 0644]
block/ioctl.c
include/linux/blkdev.h
include/linux/pr.h [new file with mode: 0644]
include/uapi/linux/pr.h [new file with mode: 0644]