Q: Priority of md_thread()

From: Potthoff, Kay <hidden>
Date: 2002-05-22 11:59:57

I have a question regarding the priority of the md_thread() function
(defined in md.c).

I have seen that the priority of this thread is set to -20 (parameter
current->nice), which means that this thread takes the highest priority. The
problem I have is that this thread blocks some other task that is answering
keep alive network pings from another (sibling) node. Because the keep alive
answers are blocked the other node decides to take-over the RAID. This
situation leeds to the fact that two nodes try to start the RAID. MD don't
like this. The RAID is considered to be faulty and both nodes try to repair
it, that is a problem.

I figuered out that the cause of this problem is the high priority of the
md_thread() function. I feel tempted to decrease this priority, but I feel
some upcoming ache in my belly because I don't know the exact reason why the
priority had been set to -20. I hope that somebody can explain me why! The
comments in the sources seem to regard to RAID-5 personality. If so that
would be no problem, I intend only to use RAID-1.

Thanks in advance, Kay

######################################################
# Kay Potthoff              Senior Software Engineer
#
# FORCE Computers GmbH        Tel.: +49-89-60814-356
# Prof.-Messerschmitt-Str. 1    FAX : +49-89-6097793
# 85579 Neubiberg/München
# Deutschland/Germany
#
# mailto:Kay.Potthoff@force.de
######################################################
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help