Skip to content

Commit

Permalink
Corrections in Documentation/block/ioprio.txt
Browse files Browse the repository at this point in the history
The newer glibc does not allow system calls to be made via _syscallN()
wrapper. They have to be made through syscall(). The ionice code used
the older interface. Correcting it to use syscall.

Signed-off-by: Dhaval Giani <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Dhaval Giani authored and Jens Axboe committed Oct 10, 2007
1 parent db47d47 commit 3317fed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Documentation/block/ioprio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,15 @@ extern int sys_ioprio_get(int, int);
#error "Unsupported arch"
#endif

_syscall3(int, ioprio_set, int, which, int, who, int, ioprio);
_syscall2(int, ioprio_get, int, which, int, who);
static inline int ioprio_set(int which, int who, int ioprio)
{
return syscall(__NR_ioprio_set, which, who, ioprio);
}

static inline int ioprio_get(int which, int who)
{
return syscall(__NR_ioprio_get, which, who);
}

enum {
IOPRIO_CLASS_NONE,
Expand Down

0 comments on commit 3317fed

Please sign in to comment.