summaryrefslogtreecommitdiff
path: root/include/linux/raid/multipath.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2002-08-22 21:26:27 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-08-22 21:26:27 -0700
commit3e98f2fb3d7dd2496667353713317ae353a89522 (patch)
tree6bf8fe054b28ab1abb057aa7a489af258c765548 /include/linux/raid/multipath.h
parentfff3986f4b2bca00291c8550945b7d890216e6fd (diff)
[PATCH] md: Keep track of number of pending requests on each component device on an MD array
This will allow us to know, in the event of a device failure, when the device is completely unused and so can be disconnected from the array. Currently this isn't a problem as drives aren't normally disconnect until after a repacement has been rebuilt, which is a LONG TIME, but that will change shortly... We always increment the count under a spinlock after checking that it hasn't been disconnected already (rdev!= NULL). We disconnect under the same spinlock after checking that the count is zero.
Diffstat (limited to 'include/linux/raid/multipath.h')
0 files changed, 0 insertions, 0 deletions