diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2026-07-29 11:10:40 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-08-03 20:31:54 -0600 |
| commit | 24fd3706178f1ae5501fd1ff9036e170ed0665ba (patch) | |
| tree | 81e0e555c142467050d9a3202f2dc1e8d48a91c5 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3831568792af75b6523fa93bb91560e29189cf55 (diff) | |
ublk: check for ublk_unmap_io() returning 0
If the userspace ublk server passes an unmapped address as the data
buffer for a completed ublk read, ublk_unmap_io() will return 0
indicating no bytes could be copied. Currently, this will result in
calling blk_update_request() with nr_bytes=0, which doesn't seem
supported. Fail the I/O with BLK_STS_IOERR in this case instead.
Fixes: 71f28f3136af ("ublk_drv: add io_uring based userspace block driver")
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://patch.msgid.link/20260729171041.45061-3-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
