aboutsummaryrefslogtreecommitdiff
path: root/lib/pldmfw
diff options
context:
space:
mode:
authorDamien Le Moal2021-05-26 06:24:53 +0900
committerMike Snitzer2021-06-04 12:07:36 -0400
commit9ffbbb435d8f566a0924ce4b5dc7fc1bceb6dbf8 (patch)
treeb38b78b9592324c2aabd54af65d6a9fad7257b78 /lib/pldmfw
parentd0ea6bde141df9311bc36e7b07ad37b449f2c4f5 (diff)
block: introduce BIO_ZONE_WRITE_LOCKED bio flag
Introduce the BIO flag BIO_ZONE_WRITE_LOCKED to indicate that a BIO owns the write lock of the zone it is targeting. This is the counterpart of the struct request flag RQF_ZONE_WRITE_LOCKED. This new BIO flag is reserved for now for zone write locking control for device mapper targets exposing a zoned block device. Since in this case, the lock flag must not be propagated to the struct request that will be used to process the BIO, a BIO private flag is used rather than changing the RQF_ZONE_WRITE_LOCKED request flag into a common REQ_XXX flag that could be used for both BIO and request. This avoids conflicts down the stack with the block IO scheduler zone write locking (in mq-deadline). Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Acked-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'lib/pldmfw')
0 files changed, 0 insertions, 0 deletions