16a5ac984SBart Van Assche // SPDX-License-Identifier: GPL-2.0
26a5ac984SBart Van Assche /*
36a5ac984SBart Van Assche  * Copyright (C) 2017 Western Digital Corporation or its affiliates.
46a5ac984SBart Van Assche  */
56a5ac984SBart Van Assche 
66a5ac984SBart Van Assche #include <linux/blkdev.h>
76a5ac984SBart Van Assche #include "blk-mq-debugfs.h"
86a5ac984SBart Van Assche 
queue_zone_wlock_show(void * data,struct seq_file * m)96a5ac984SBart Van Assche int queue_zone_wlock_show(void *data, struct seq_file *m)
106a5ac984SBart Van Assche {
116a5ac984SBart Van Assche 	struct request_queue *q = data;
126a5ac984SBart Van Assche 	unsigned int i;
136a5ac984SBart Van Assche 
14*d86e716aSChristoph Hellwig 	if (!q->disk->seq_zones_wlock)
156a5ac984SBart Van Assche 		return 0;
166a5ac984SBart Van Assche 
17*d86e716aSChristoph Hellwig 	for (i = 0; i < q->disk->nr_zones; i++)
18*d86e716aSChristoph Hellwig 		if (test_bit(i, q->disk->seq_zones_wlock))
196a5ac984SBart Van Assche 			seq_printf(m, "%u\n", i);
206a5ac984SBart Van Assche 
216a5ac984SBart Van Assche 	return 0;
226a5ac984SBart Van Assche }
23