PM-runtime: Fix deadlock with ktime_get()
[linux/fpc-iii.git] / block / blk-mq-debugfs-zoned.c
blob038cb627c86896e11282d1ad9173d9a26c913eb6
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2017 Western Digital Corporation or its affiliates.
4 */
6 #include <linux/blkdev.h>
7 #include "blk-mq-debugfs.h"
9 int queue_zone_wlock_show(void *data, struct seq_file *m)
11 struct request_queue *q = data;
12 unsigned int i;
14 if (!q->seq_zones_wlock)
15 return 0;
17 for (i = 0; i < q->nr_zones; i++)
18 if (test_bit(i, q->seq_zones_wlock))
19 seq_printf(m, "%u\n", i);
21 return 0;