On Thu, July 5, 2018 9:51 AM, Dorau, Lukasz <[email protected]> wrote:
> 
> I tested the workaround (ndctl start-scrub ; ndctl wait-scrub) but it does 
> not work
> for me (with kernel v4.17.4 and ndctl v61.1):
> 
> # ndctl inject-error --block=16838 --count=512 namespace4.0
> # ndctl start-scrub
> # ndctl wait-scrub      #       <---       I waited 30 minutes for 'ndctl 
> wait-scrub', but it did
> not finish...
> 

It is polling forever in ndctl_bus_wait_for_scrub_completion() at 
libndctl.c:1239:

Program received signal SIGINT, Interrupt.
0x00007ffff72d2a40 in __poll_nocancel () at 
../sysdeps/unix/syscall-template.S:84
84      T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) bt
#0  0x00007ffff72d2a40 in __poll_nocancel () at 
../sysdeps/unix/syscall-template.S:84
#1  0x00007ffff7bc5e96 in poll (__timeout=-1, __nfds=1, __fds=0x7fffffffde38) 
at /usr/include/bits/poll2.h:46
#2  ndctl_bus_wait_for_scrub_completion (bus=bus@entry=0x62c6d0) at 
libndctl.c:1239
#3  0x00000000004075c2 in scrub_action (action=ACTION_WAIT, bus=0x62c6d0) at 
bus.c:30
#4  bus_action (argc=<optimized out>, argv=<optimized out>, 
usage=usage@entry=0x4161c8 "ndctl wait-scrub [<bus-id> <bus-id2> ... <bus-idN>] 
[<options>]", action=action@entry=ACTION_WAIT, ctx=0x621340, 
    options=0x416260 <bus_options>) at bus.c:77
#5  0x0000000000407735 in cmd_wait_scrub (argc=<optimized out>, argv=<optimized 
out>, ctx=<optimized out>) at bus.c:119
#6  0x0000000000414590 in run_builtin (p=0x61faf0 <commands+304>, ctx=0x621340, 
argv=0x7fffffffe4f0, argc=1) at util/main.c:90
#7  main_handle_internal_command (argc=1, argv=0x7fffffffe4f0, ctx=0x621340, 
cmds=cmds@entry=0x61f9c0 <commands>, num_cmds=num_cmds@entry=23) at 
util/main.c:137
#8  0x00000000004071fd in main (argc=<optimized out>, argv=<optimized out>) at 
ndctl.c:125

--
Lukasz

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to