Re: [PATCH] 0/4: Add the ability to splice a list into another list
"Darrick J. Wong" <[email protected]>
| Newsgroups | gmane.linux.ataraid |
|---|---|
| Organization | IBM |
| Message-ID | <[email protected]> |
Molle Bestefich wrote: > Heinz Mauelshagen wrote: >> > But, I suppose it wouldn't be too difficult to reroll the patches to do >> > it that way too. >> >> That would be great, thanks. > > Why would that be a better solution? I'm not sure. I like my solution better, because any additional raid_devs that get created after the first one are explicitly marked as clones, and the name/di/fmt/meta_areas fields all point to the corresponding fields in the first one. The isw code does essentially the same thing by (if I'm reading the code correctly) creating additional raid_devs with shared private_ptrs and meta_areas = NULL, but you'd have to know that isw is doing that to sort things out. Actually, come to think of it, it seems like a bad idea to have raid_devs floating around with NULL meta_areas, because any core code that depends on meta_areas pointing to some real data would become confused. That said, I can't think of any code that does that... yet. Though I wonder what isw_write will do if you call it on a secondary raid_dev, because isw_write uses META(), which depends on meta_areas. --D _______________________________________________ Ataraid-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/ataraid-list
signature.asc
(application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFEhxLZa6vRYYgWQuURAoAkAKClTZ1CEm9g3WlFpaqtEIphm1LqsgCYstXY fDEpB/CokPD8hXjoUcRXJA== =UGW7 -----END PGP SIGNATURE-----