-
Notifications
You must be signed in to change notification settings - Fork 0
selftests/ublk: three bug fixes #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: linus-master_base
Are you sure you want to change the base?
Conversation
|
Upstream branch: 623fb99 |
bd7a16b to
838029a
Compare
f962a4d to
06634b5
Compare
|
Upstream branch: b543459 |
838029a to
55e6124
Compare
|
Upstream branch: b543459 |
55e6124 to
8390e24
Compare
06634b5 to
8a473ad
Compare
|
Upstream branch: 944aacb |
8390e24 to
de69b83
Compare
8a473ad to
fa94b37
Compare
|
Upstream branch: 944aacb |
de69b83 to
c0b836f
Compare
fa94b37 to
41a5848
Compare
Include cmd_inflight in ublk_thread_is_done() check. Without this, the thread may exit before all FETCH commands are completed, which may cause device deletion to hang. Fixes: 6aecda0 ("selftests: ublk: add kernel selftests for ublk") Signed-off-by: Ming Lei <ming.lei@redhat.com>
|
Upstream branch: 6c79021 |
Fix error handling in ublk_start_daemon() when start_dev fails: 1. Call ublk_ctrl_stop_dev() to cancel inflight uring_cmd before cleanup. Without this, the device deletion may hang waiting for I/O completion that will never happen. 2. Add fail_start label so that pthread_join() is called on the error path. This ensures proper thread cleanup when startup fails. Fixes: 6aecda0 ("selftests: ublk: add kernel selftests for ublk") Signed-off-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Initialize _evtfd to -1 in struct dev_ctx to prevent garbage output when running kublk in foreground mode. Without this, _evtfd is zero-initialized to 0 (stdin), and ublk_send_dev_event() writes binary data to stdin which appears as garbage on the terminal. Also fix debug message format string. Fixes: 6aecda0 ("selftests: ublk: add kernel selftests for ublk") Signed-off-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
c0b836f to
448e3f3
Compare
Pull request for series with
subject: selftests/ublk: three bug fixes
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1041659