]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: queue: amend buffer swap for non-blocking transfer
authorSeungwon Jeon <tgih.jun@samsung.com>
Fri, 28 Sep 2012 10:12:53 +0000 (19:12 +0900)
committerChris Ball <cjb@laptop.org>
Tue, 23 Oct 2012 21:01:24 +0000 (17:01 -0400)
commitf1fc65ac9e89cbfece8c522a68f2db29c872f0e5
tree9c29fb9b4ee8c0a5870e4028e8cca05af5572272
parent6c7d96965534e2ffa405e4b50b4a76cf2e9f3ad3
mmc: queue: amend buffer swap for non-blocking transfer

In case both 'req' and 'mq->mqrq_prev->req' are null, there is no request
to be processed. That means there is no need to switch buffer.
Switching buffer is required only after finishing 'issue_fn'.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Reviewed-by: Per Forlin <per.forlin@stericsson.com>
Tested-by: Johan Rudholm <johan.rudholm@stericsson.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/queue.c