]> git.neil.brown.name Git - history.git/commit
[PATCH] MD - Get rid of find_rdev_all
authorNeil Brown <neilb@cse.unsw.edu.au>
Fri, 19 Jul 2002 02:07:44 +0000 (19:07 -0700)
committerTrond Myklebust <trond.myklebust@fys.uio.no>
Fri, 19 Jul 2002 02:07:44 +0000 (19:07 -0700)
commit70e96bef8aacd89af3601f63d5d1236071d7d901
tree3d7c94fd437c5dec51d7f67615ae921569ee8337
parenta0f86742c04040981e3cb29439ca00179a15da0f
[PATCH] MD - Get rid of find_rdev_all

Get rid of find_rdev_all

find_rdev_all is now only used to check if a device is already
used in an md array.

We change lock_rdev so that it claims the bdev for
the specific rdev rather than for rdevs in general.
Now lock_rdev will check if the bdev is inuse by another array
or not, so the find_rdev_all check isn't needed and is removed,
along with find_rdev_all itself.

We also make sure that the error code from lock_rdev is
propagated up properly.
drivers/md/md.c