aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorKay Sievers <[email protected]>2008-12-02 10:31:50 -0800
committerLinus Torvalds <[email protected]>2008-12-02 15:50:40 -0800
commitf1d0b063d993527754f062c589b73f125024d216 (patch)
tree65abf0c262ea1c8cf3931ea328329c82a049d341 /net/lapb/lapb_subr.c
parent1b79cd04fab80be61dcd2732e2423aafde9a4c1c (diff)
bdi: register sysfs bdi device only once per queue
Devices which share the same queue, like floppies and mtd devices, get registered multiple times in the bdi interface, but bdi accounts only the last registered device of the devices sharing one queue. On remove, all earlier registered devices leak, stay around in sysfs, and cause "duplicate filename" errors if the devices are re-created. This prevents the creation of multiple bdi interfaces per queue, and the bdi device will carry the dev_t name of the block device which is the first one registered, of the pool of devices using the same queue. [[email protected]: add a WARN_ON so we know which drivers are misbehaving] Tested-by: Peter Korsgaard <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Signed-off-by: Kay Sievers <[email protected]> Cc: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions