]> 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>
Wed, 7 Nov 2012 20:40:53 +0000 (15:40 -0500)
commitcdb592eaf740878efcdff4878e1839afc6220b6e
tree13dd01d6fa8f1c50643b7058cf50468a0ce2ad40
parent162c21008e4e701808b9269f84fe7bfe34d7248e
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