code: public static void ioprioSetIfPossible(int classOfService, int data)
        throws IOException {
      if (nativeLoaded && ioprioPossible) {
        if (classOfService == IOPRIO_CLASS_NONE) {
          // ioprio is disabled.
          return;
        }
        try {
          ioprio_set(classOfService, data);
        } catch (UnsupportedOperationException uoe) {
          LOG.warn("ioprioSetIfPossible() failed", uoe);
          ioprioPossible = false;
        } catch (UnsatisfiedLinkError ule) {
          LOG.warn("ioprioSetIfPossible() failed", ule);
          ioprioPossible = false;
        } catch (NativeIOException nie) {
          LOG.warn("ioprioSetIfPossible() failed", nie);
          throw nie;
        }
      }
    }
docs: Call ioprio_set(class, data) for this thread.
  
  @throws NativeIOException
  if there is an error with the syscall