xsegbd: Make sysfs add/remove more robust
authorStratos Psomadakis <psomas@grnet.gr>
Tue, 3 Apr 2012 11:13:42 +0000 (14:13 +0300)
committerStratos Psomadakis <psomas@grnet.gr>
Tue, 3 Apr 2012 11:13:42 +0000 (14:13 +0300)
commit4720c1500ce2b2686d6fcc4e5e719169a173cfc6
tree8019a3f6263d07df25a8da7a17de8de5d92a7cef
parentd581917e70fdc4d2d859496fc934712a153863b8
xsegbd: Make sysfs add/remove more robust

Use a separate spinlock to serialize access on the dev list, instead
of the sysfs/bus mutex, and make sure the device is not removed from
the dev list too early.

The change was 'ported' from Alex Elder's patches for the rbd block
driver.
xseg/peers/kernel/xsegbd.c