Bug 443842 - [PATCH] allow ionice to proceed even in case it could not set priority
[PATCH] allow ionice to proceed even in case it could not set priority
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: util-linux-ng (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Karel Zak
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-23 12:54 EDT by Lubomir Kundrak
Modified: 2008-04-28 07:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-04-28 07:30:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to allow ionice to proceed even in case it could not set priority (2.40 KB, patch)
2008-04-23 12:54 EDT, Lubomir Kundrak
no flags Details | Diff

  None (edit)
Description Lubomir Kundrak 2008-04-23 12:54:20 EDT
Description of problem:

Attached is a tiny patch that allows "tolerant" behavior, i.e. proceeding even 
if priority could not be set. This might be of use in case something (selinux,
old kernel, etc.) does not allow the requested scheduling priority to be set.

This could be to some extend done as follows:

ionice -c3 command || command

but the downside is that one could not really tell if what failed was setting
priority or command itself, which could result in duplicate command run.

This patch solves the situation, so that user can do

ionice -t -c3 command

instead.

Version-Release number of selected component (if applicable):

Applies to util-linux-ng-2.13.1-9
Comment 1 Lubomir Kundrak 2008-04-23 12:54:20 EDT
Created attachment 303524 [details]
Patch to allow ionice to proceed even in case it could not set priority
Comment 2 Karel Zak 2008-04-28 07:30:10 EDT
Redirected to the upstream mailing list. Thanks.

Note You need to log in before you can comment on or make changes to this bug.