]> git.baikalelectronics.ru Git - kernel.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>
Thu, 6 Dec 2012 18:54:37 +0000 (13:54 -0500)
commit5e0e60281ba2490e8988c8735d8a83e150fe345d
treeed3c0d93646ef19f712211425149611e3c4091b0
parente776b6432d81fe435de531e4b9d0b2c2c5018a7c
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