block/002: remove debugfs check while blktests is running
PATCH v2 1/1 block/002: remove debugfs check while blktests is running
See commit: 99d055b4fd4b ("block: remove per-disk debugfs files in blk_unregister_queue")
--- tests/block/002 | 3 --- 1 file changed, 3 deletions(-)
tests/block/002 +0 -3
@@ -25,9 +25,6 @@ test() { blktrace -D "$TMP_DIR" "/dev/${SCSI_DEBUG_DEVICES[0]}" >"$FULL" 2>&1 & sleep 0.5 echo 1 > "/sys/block/${SCSI_DEBUG_DEVICES[0]}/device/delete" - if [[ ! -d /sys/kernel/debug/block/${SCSI_DEBUG_DEVICES[0]} ]]; then - echo "debugfs directory deleted with blktrace active" - fi { kill $!; wait; } >/dev/null 2>/dev/null if [[ -d /sys/kernel/debug/block/${SCSI_DEBUG_DEVICES[0]} ]]; then echo "debugfs directory leaked"
Signature · 1 line
2.34.1
Hi Yi, thanks for this patch. I've been seeing the block/002 failure for a while. Happy to see it resolved.
Quoted 12 lines · Yi Zhang
See commit:
99d055b4fd4b("block: remove per-disk debugfs files inblk_unregister_queue")Signed-off-by Yi Zhang <[email protected]>--- tests/block/002 | 3 --- 1 file changed, 3 deletions(-)tests/block/002 +0
-0
tests/block/002 test() { · line 30
Quoted 6 lines
tests/block/002 +0
-3@@ -25,9 +25,6 @@ test() { blktrace -D "$TMP_DIR" "/dev/${SCSI_DEBUG_DEVICES[0]}" >"$FULL" 2>&1 & sleep 0.5 echo 1 > "/sys/block/${SCSI_DEBUG_DEVICES[0]}/device/delete" - if [[ ! -d /sys/kernel/debug/block/${SCSI_DEBUG_DEVICES[0]} ]]; then - echo "debugfs directory deleted with blktrace active" - fi
Regarding the commit subject, I think the word "blktests" is to be replaced with "blktrace". As the removed echo command above shows, this patch removes the check while blktrace is running.
Also, I suggest to add one more sentence in the commit message for recording purpose:
This fix avoids the test case failure observed since the kernel commit 0a9a25ca7843 ("block: let blkcg_gq grab request queue's refcnt").
If you don't mind, I will do the edits above when I apply this v2 patch.
Signature · 1 line
Shin'ichiro Kawasaki
Quoted 12 lines · Shinichiro Kawasaki
Hi Yi, thanks for this patch. I've been seeing the block/002 failure for a while. Happy to see it resolved.
Quoted 7 lines · Yi Zhang
See commit:
99d055b4fd4b("block: remove per-disk debugfs files inblk_unregister_queue")Signed-off-by Yi Zhang <[email protected]>--- tests/block/002 | 3 --- 1 file changed, 3 deletions(-)
Quoted 15 lines
tests/block/002 test() { · line 30
Quoted 11 lines
tests/block/002 +0
-3@@ -25,9 +25,6 @@ test() { blktrace -D "$TMP_DIR" "/dev/${SCSI_DEBUG_DEVICES[0]}" >"$FULL" 2>&1 & sleep 0.5 echo 1 > "/sys/block/${SCSI_DEBUG_DEVICES[0]}/device/delete" - if [[ ! -d /sys/kernel/debug/block/${SCSI_DEBUG_DEVICES[0]} ]]; then - echo "debugfs directory deleted with blktrace active" - fiRegarding the commit subject, I think the word "blktests" is to be replaced with "blktrace". As the removed echo command above shows, this patch removes the check while blktrace is running.
Agree, thanks.
Quoted 8 lines
Also, I suggest to add one more sentence in the commit message for recording purpose:
This fix avoids the test case failure observed since the kernel commit
0a9a25ca7843("block: letblkcg_gqgrab request queue's refcnt").If you don't mind, I will do the edits above when I apply this v2 patch.
Sure, feel free to help update the commit message when you apply it, thanks. :)
Quoted 4 lines
--
Shin'ichiro Kawasaki
Signature · 2 lines
Best Regards, Yi Zhang
Looks good:
Shinichiro Kawasaki
AppliedQuoted 36 lines · Yi Zhang
Quoted 12 lines · Shinichiro Kawasaki
Hi Yi, thanks for this patch. I've been seeing the block/002 failure for a while. Happy to see it resolved.
Quoted 7 lines · Yi Zhang
See commit:
99d055b4fd4b("block: remove per-disk debugfs files inblk_unregister_queue")Signed-off-by Yi Zhang <[email protected]>--- tests/block/002 | 3 --- 1 file changed, 3 deletions(-)Quoted 15 lines
tests/block/002 test() { · line 30
Quoted 11 lines
tests/block/002 +0
-3@@ -25,9 +25,6 @@ test() { blktrace -D "$TMP_DIR" "/dev/${SCSI_DEBUG_DEVICES[0]}" >"$FULL" 2>&1 & sleep 0.5 echo 1 > "/sys/block/${SCSI_DEBUG_DEVICES[0]}/device/delete" - if [[ ! -d /sys/kernel/debug/block/${SCSI_DEBUG_DEVICES[0]} ]]; then - echo "debugfs directory deleted with blktrace active" - fiRegarding the commit subject, I think the word "blktests" is to be replaced with "blktrace". As the removed echo command above shows, this patch removes the check while blktrace is running.
Agree, thanks.
Quoted 4 lines
Also, I suggest to add one more sentence in the commit message for recording purpose:
Quoted 6 lines
Quoted 4 lines
This fix avoids the test case failure observed since the kernel commit
0a9a25ca7843("block: letblkcg_gqgrab request queue's refcnt").If you don't mind, I will do the edits above when I apply this v2 patch.
Sure, feel free to help update the commit message when you apply it, thanks. :)
Thanks! Applied with some edits in the commit message.
Signature · 1 line
Shin'ichiro Kawasaki