• Martin K. Petersen's avatar
    block: Quiesce zeroout wrapper · 9f9ee1f2
    Martin K. Petersen authored
    blkdev_issue_zeroout() printed a warning if a device failed a discard or
    write same request despite advertising support for these. That's fine
    for SCSI since we'll disable these commands if we get an error back from
    the disk saying that they are not supported. And consequently the
    warning only gets printed once.
    
    There are other types of block devices that support discard, however,
    and these may return -EOPNOTSUPP for each command but leave discard
    enabled in the queue limits. This will cause a warning message for every
    blkdev_issue_zeroout() invocation.
    
    Remove the offending warning messages.
    Reported-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    Tested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    9f9ee1f2
blk-lib.c 8.02 KB