Commit 5058a62
ublk: check for unprivileged daemon on each I/O fetch
Commit ab03a61 ("ublk: have a per-io daemon instead of a per-queue
daemon") allowed each ublk I/O to have an independent daemon task.
However, nr_privileged_daemon is only computed based on whether the last
I/O fetched in each ublk queue has an unprivileged daemon task.
Fix this by checking whether every fetched I/O's daemon is privileged.
Change nr_privileged_daemon from a count of queues to a boolean
indicating whether any I/Os have an unprivileged daemon.
Signed-off-by: Caleb Sander Mateos <[email protected]>
Fixes: ab03a61 ("ublk: have a per-io daemon instead of a per-queue daemon")
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 212c928 commit 5058a62
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
1551 | 1551 | | |
1552 | 1552 | | |
1553 | 1553 | | |
1554 | | - | |
| 1554 | + | |
1555 | 1555 | | |
1556 | 1556 | | |
1557 | 1557 | | |
| |||
1978 | 1978 | | |
1979 | 1979 | | |
1980 | 1980 | | |
1981 | | - | |
| 1981 | + | |
1982 | 1982 | | |
1983 | | - | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
| 1983 | + | |
| 1984 | + | |
1987 | 1985 | | |
1988 | 1986 | | |
1989 | 1987 | | |
| |||
2878 | 2876 | | |
2879 | 2877 | | |
2880 | 2878 | | |
2881 | | - | |
2882 | | - | |
| 2879 | + | |
| 2880 | + | |
2883 | 2881 | | |
2884 | 2882 | | |
2885 | 2883 | | |
| |||
0 commit comments