Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
faff7e92
Commit
faff7e92
authored
Sep 05, 2003
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Sep 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ide: fix imbalance preempt count with taskfile PIO
Noticed by Tejun Huh <tejun@aratech.co.kr>.
parent
6dbb44ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
26 deletions
+13
-26
include/linux/ide.h
include/linux/ide.h
+13
-26
No files found.
include/linux/ide.h
View file @
faff7e92
...
@@ -850,29 +850,6 @@ static inline void ide_unmap_buffer(struct request *rq, char *buffer, unsigned l
...
@@ -850,29 +850,6 @@ static inline void ide_unmap_buffer(struct request *rq, char *buffer, unsigned l
if
(
rq
->
bio
)
if
(
rq
->
bio
)
bio_kunmap_irq
(
buffer
,
flags
);
bio_kunmap_irq
(
buffer
,
flags
);
}
}
#else
/* !CONFIG_IDE_TASKFILE_IO */
static
inline
void
*
task_map_rq
(
struct
request
*
rq
,
unsigned
long
*
flags
)
{
/*
* fs request
*/
if
(
rq
->
cbio
)
return
rq_map_buffer
(
rq
,
flags
);
/*
* task request
*/
return
rq
->
buffer
+
blk_rq_offset
(
rq
);
}
static
inline
void
task_unmap_rq
(
struct
request
*
rq
,
char
*
buffer
,
unsigned
long
*
flags
)
{
if
(
rq
->
cbio
)
rq_unmap_buffer
(
buffer
,
flags
);
}
#endif
/* !CONFIG_IDE_TASKFILE_IO */
#endif
/* !CONFIG_IDE_TASKFILE_IO */
#define IDE_CHIPSET_PCI_MASK \
#define IDE_CHIPSET_PCI_MASK \
...
@@ -1472,9 +1449,19 @@ static inline void task_sectors(ide_drive_t *drive, struct request *rq,
...
@@ -1472,9 +1449,19 @@ static inline void task_sectors(ide_drive_t *drive, struct request *rq,
unsigned
nsect
,
int
rw
)
unsigned
nsect
,
int
rw
)
{
{
unsigned
long
flags
;
unsigned
long
flags
;
unsigned
int
bio_rq
;
char
*
buf
;
char
*
buf
;
buf
=
task_map_rq
(
rq
,
&
flags
);
/*
* bio_rq flag is needed because we can call
* rq_unmap_buffer() with rq->cbio == NULL
*/
bio_rq
=
rq
->
cbio
?
1
:
0
;
if
(
bio_rq
)
buf
=
rq_map_buffer
(
rq
,
&
flags
);
/* fs request */
else
buf
=
rq
->
buffer
+
blk_rq_offset
(
rq
);
/* task request */
/*
/*
* IRQ can happen instantly after reading/writing
* IRQ can happen instantly after reading/writing
...
@@ -1487,9 +1474,9 @@ static inline void task_sectors(ide_drive_t *drive, struct request *rq,
...
@@ -1487,9 +1474,9 @@ static inline void task_sectors(ide_drive_t *drive, struct request *rq,
else
else
taskfile_input_data
(
drive
,
buf
,
nsect
*
SECTOR_WORDS
);
taskfile_input_data
(
drive
,
buf
,
nsect
*
SECTOR_WORDS
);
task_unmap_rq
(
rq
,
buf
,
&
flags
);
if
(
bio_rq
)
rq_unmap_buffer
(
buf
,
&
flags
);
}
}
#endif
/* CONFIG_IDE_TASKFILE_IO */
#endif
/* CONFIG_IDE_TASKFILE_IO */
extern
int
drive_is_ready
(
ide_drive_t
*
);
extern
int
drive_is_ready
(
ide_drive_t
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment