]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: add an API for Persistent Reservations
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Dec 2016 01:59:11 +0000 (17:59 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:30 +0000 (13:40 -0700)
commit8b7b319d5ad435bbbc18614ddae062e805f9eae6
tree7b8b432917b61ddacd4ca22f40f1f31a325e9f0f
parentfcd8d29890c82f6db0a1d23d4d62c27aaa7e6426
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>
(cherry picked from commit bbd3e064362e5057cc4799ba2e4d68c7593e490b)

Orabug: 25130845
Conflicts:
    block/ioctl.c
Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.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]