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
nexedi
linux
Commits
07b24141
Commit
07b24141
authored
Mar 14, 2003
by
Neil Brown
Committed by
Linus Torvalds
Mar 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] md: Opencode flush_curr_signals in md.c
It is (now) too trivial to even have an inline.
parent
7baaf5dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
drivers/md/md.c
drivers/md/md.c
+4
-10
No files found.
drivers/md/md.c
View file @
07b24141
...
...
@@ -2473,12 +2473,6 @@ static struct block_device_operations md_fops =
.
ioctl
=
md_ioctl
,
};
static
inline
void
flush_curr_signals
(
void
)
{
flush_signals
(
current
);
}
int
md_thread
(
void
*
arg
)
{
mdk_thread_t
*
thread
=
arg
;
...
...
@@ -2525,7 +2519,7 @@ int md_thread(void * arg)
blk_run_queues
();
}
if
(
signal_pending
(
current
))
flush_
curr_signals
(
);
flush_
signals
(
current
);
}
complete
(
thread
->
event
);
return
0
;
...
...
@@ -2945,7 +2939,7 @@ void md_handle_safemode(mddev_t *mddev)
if
(
signal_pending
(
current
))
{
printk
(
KERN_INFO
"md: md%d in safe mode
\n
"
,
mdidx
(
mddev
));
mddev
->
safemode
=
1
;
flush_
curr_signals
(
);
flush_
signals
(
current
);
}
if
(
mddev
->
safemode
)
md_enter_safemode
(
mddev
);
...
...
@@ -2996,7 +2990,7 @@ static void md_do_sync(void *data)
}
if
(
wait_event_interruptible
(
resync_wait
,
mddev2
->
curr_resync
<
mddev
->
curr_resync
))
{
flush_
curr_signals
(
);
flush_
signals
(
current
);
err
=
-
EINTR
;
mddev_put
(
mddev2
);
goto
skip
;
...
...
@@ -3079,7 +3073,7 @@ static void md_do_sync(void *data)
* got a signal, exit.
*/
printk
(
KERN_INFO
"md: md_do_sync() got signal ... exiting
\n
"
);
flush_
curr_signals
(
);
flush_
signals
(
current
);
err
=
-
EINTR
;
goto
out
;
}
...
...
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