commit | 1392d37018d4f68c5bb2c98dae9a018b73926865 | [log] [tgz] |
---|---|---|
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | Tue May 12 17:55:48 2020 +0900 |
committer | Jens Axboe <axboe@kernel.dk> | Tue May 12 20:36:28 2020 -0600 |
tree | 9bd4b688838406c57655576a41fbad66ab121598 | |
parent | 0512a75b98f847c2e9a4b664013424e603e202f7 [diff] |
block: introduce blk_req_zone_write_trylock Introduce blk_req_zone_write_trylock(), which either grabs the write-lock for a sequential zone or returns false, if the zone is already locked. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>