]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-blkfront: switch from llist to list
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 18 Mar 2013 16:49:34 +0000 (17:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:25:50 +0000 (09:25 -0700)
commit8f6000e86f269103e3126b014c25a6bdd3b96ba0
treeb06a397da33586649bd3d67f54787d97e947bef4
parente90381b0d45eb96e1963db7ebe27adbc4f599e6f
xen-blkfront: switch from llist to list

commit 155b7edb51430a280f86c1e21b7be308b0d219d4 upstream.

The git commit f84adf4921ae3115502f44ff467b04bf2f88cf04
(xen-blkfront: drop the use of llist_for_each_entry_safe)

was a stop-gate to fix a GCC4.1 bug. The appropiate way
is to actually use an list instead of using an llist.

As such this patch replaces the usage of llist with an
list.

Since we always manipulate the list while holding the io_lock, there's
no need for additional locking (llist used previously is safe to use
concurrently without additional locking).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
[v1: Redid the git commit description]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/xen-blkfront.c