---559023410-851401618-1025179203=:14825
Content-Type: TEXT/PLAIN; charset=US-ASCII
I have Martin's permission to push some ide-clean patches, so here we go.
I'm running fine SMP kernel with spinlocks debugging enabled on UP.
Note that this patch brokes ide-cd/tape/floppy/scsi locking...
This patch is mainly for developers to have something to sync with... ;-)
still TODO:
- remove ide_wait commands from interrupt paths
- move locking/completion upwards from ide_do_drive_cmd()
- fix ide device setup/tear down locking
- locking of ioctls
- tape->spinlock is probably obsolete now
Thu Jun 27 13:32:35 CEST 2002 ide-clean-95
It is a merge of patches by Alexander Atanasov and Zwane Mwaikambo
(big thanks guys!) plus some corrections by me...
- Remove locking from IRQ handlers (*_intr etc.) and ata_ops->do_reqeuest(),
ata_ops->end_request().
- Add non-locking __blk_get_request() and __blk_attempt_remege() helpers
to block layer (ll_rw_blk.c).
- Move locking up to the entry points.
- Move ata_expiry_t functions to the ide_startstop_t interface
(need to call ata_error, and its return is idestartstop_t, not wait time).
- Kill ata_end_request() and restart_request() (they were locking variants).
- Disable some ide__sti() for now.
- Misc fixes.
---559023410-851401618-1025179203=:14825
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ide-clean-95.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.30.0206271400030.14825@mion.elka.pw.edu.pl>
Content-Description:
Content-Disposition: attachment; filename="ide-clean-95.diff"
ZGlmZiAtWCBkb250ZGlmZiAtdXIgbGludXgtMi41LjI0L2RyaXZlcnMvYmxv
Y2svbGxfcndfYmxrLmMgbGludXgvZHJpdmVycy9ibG9jay9sbF9yd19ibGsu
Yw0KLS0tIGxpbnV4LTIuNS4yNC9kcml2ZXJzL2Jsb2NrL2xsX3J3X2Jsay5j
CU1vbiBKdW4gMjQgMjI6MjA6NTMgMjAwMg0KKysrIGxpbnV4L2RyaXZlcnMv
YmxvY2svbGxfcndfYmxrLmMJV2VkIEp1biAyNiAxOTo1Njo1MyAyMDAyDQpA
QCAtMTIwMyw2ICsxMjAzLDI2IEBADQogCXJldHVybiByc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hbmRsZXIoc3RydWN0IGF0YV9kZXZpY2UgKmRyaXZlLCBhdGFf
aGFuZGxlcl90IGhhbmRsZXIsDQogCQl1bnNpZ25lZCBsb25nIHRpbWVvdXQs
IGF0YV9leHBpcnlfdCBleHBpcnkpOw0KQEAgLTYyNiwxMiArNjI0LDYgQEAN
CiBzdHJ1Y3QgYXRhX2RldmljZSAqZ2V0X2luZm9fcHRyKGtkZXZfdCBpX3Jk
ZXYpOw0KIA0KIC8qDQotICogUmUtU3RhcnQgYW4gb3BlcmF0aW9uIGZvciBh
biBJREUgaW50ZXJmYWNlLg0KLSAqIFRoZSBjYWxsZXIgc2hvdWxkIHJldHVy
biBpbW1lZGlhdGVseSBhZnRlciBpbnZva2luZyB0aGlzLg0KLSAqLw0KLWlk
ZV9zdGFydHN0b3BfdCByZXN0YXJ0X3JlcXVlc3Qoc3RydWN0IGF0YV9kZXZp
Y2UgKik7DQotDQotLyoNCiAgKiAiYWN0aW9uIiBwYXJhbWV0ZXIgdHlwZSBm
b3IgaWRlX2RvX2RyaXZlX2NtZCgpIGJlbG93Lg0KICAqLw0KIHR5cGVkZWYg
ZW51bSB7DQo=
---559023410-851401618-1025179203=:14825--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/