-
Notifications
You must be signed in to change notification settings - Fork 75
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
block/009 failed #17
Comments
@gurugio Might be linked to your message:
So maybe you made stacked device or a filesystem atop the device that scsi_debug made thus locking it open... |
I checked a reference counter of the scsi_debug module. After two xfs_io executed, the reference counter became 2.
I added a "-d" option to pwrite for direct IO and had no data conflict.
I checked /sys/block/sdc/stat and found that data was written to the disk after blkdiscard.
|
@gurugio what kernel version is this on? It looks like the fix that this test is testing went in for 4.15. I've seen the modprobe issue but haven't figured out who is still holding the device open. But let's focus on the test failure first. |
I am using Ubuntu and the standard kernel as following.
|
My colleague found a patch related to discard block device in kernel log.
|
Yes, that is the patch I'm talking about. All of the regression tests in blktests mention what patch they depend on, see https://github.com/osandov/blktests/blob/master/tests/block/009. |
You will also need 0bd1ed4860d0 ("block: pass inclusive 'lend' parameter to truncate_inode_pages_range"). |
OK, thank you. |
I'm still seeing "modprobe: FATAL: Module scsi_debug is in use." errors. At least on v4.17-rc6, this gets rid of them. Fixes GitHub issue #17. Signed-off-by: Omar Sandoval <osandov@fb.com>
@gurugio, I just pushed a commit which should fix this. |
Thanks!! |
Hi,
The block/009 test case failed as below.
I tested it on two machines and both resulted the same failure.
If I ran blkdiscard after the test, the sdg device was cleared.
I hope you could guess the reason.
Please inform me if you need more information.
The text was updated successfully, but these errors were encountered: