Commit 6793b62
Ming Lei
loop: move lo_set_size() out of queue freeze
JIRA: https://issues.redhat.com/browse/RHEL-88159
commit 4bb08cf
Author: Ming Lei <ming.lei@redhat.com>
Date: Wed Jun 11 16:49:38 2025 +0800
loop: move lo_set_size() out of queue freeze
It isn't necessary to freeze queue for updating disk size given submit_bio()
doesn't grab queue usage counter for checking eod.
Also many driver won't freeze queue for calling set_capacity_and_notify().
Move lo_set_size() out of queue freeze for fixing many lockdep warning
report.
Link: https://lore.kernel.org/linux-block/67ea99e0.050a0220.3c3d88.0042.GAE@google.com/
Reported-by: syzbot+9dd7dbb1a4b915dee638@syzkaller.appspotmail.com
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250611084938.108829-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@redhat.com>1 parent 09176fc commit 6793b62
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | 1251 | | |
1258 | 1252 | | |
1259 | 1253 | | |
1260 | 1254 | | |
1261 | 1255 | | |
1262 | 1256 | | |
1263 | 1257 | | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1264 | 1263 | | |
1265 | 1264 | | |
1266 | 1265 | | |
| |||
0 commit comments