]> git.baikalelectronics.ru Git - kernel.git/commit
md: use REQ_NOIDLE flag in md_super_write()
authorNamhyung Kim <namhyung@gmail.com>
Thu, 25 Aug 2011 04:43:34 +0000 (14:43 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 25 Aug 2011 04:43:34 +0000 (14:43 +1000)
commit70e607fc297da67d04a33b9c81b7fe0eb70efd0c
tree40296244aa28ddff0360a1a57878a99926243620
parent41c8c19319a7017687c9980ef1597756a926fb09
md: use REQ_NOIDLE flag in md_super_write()

Queue idling is used for the anticipation of immediate
sequencial I/O's but md_super_write() is a kind of one-
shot operation, coupled with md_super_wait(), so the
idling in this case will be just a waste of time.

Specifying REQ_NOIDLE prevents it. Instead of adding
the flag to submit_bio() directly, use pre-defined
macro WRITE_FLUSH_FUA.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c