Bug 443842 - [PATCH] allow ionice to proceed even in case it could not set priority
Summary: [PATCH] allow ionice to proceed even in case it could not set priority
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux-ng
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-23 16:54 UTC by Lubomir Kundrak
Modified: 2008-04-28 11:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-28 11:30:10 UTC
Type: ---
Embargoed:


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 16:54 UTC, Lubomir Kundrak
no flags Details | Diff

Description Lubomir Kundrak 2008-04-23 16:54:20 UTC
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 16:54:20 UTC
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 11:30:10 UTC
Redirected to the upstream mailing list. Thanks.


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