commit | 601e7638254c118fca135af9b1a9f35061420f62 | [log] [tgz] |
---|---|---|
author | James Bottomley <James.Bottomley@HansenPartnership.com> | Tue May 26 20:35:48 2009 +0000 |
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | Mon Jun 08 13:00:13 2009 -0500 |
tree | 61b883be6901e4c994c5b472959e91ebdb267d6f | |
parent | 91bc31fb3bae4e55832c7c39d4f9c193285e6ab2 [diff] |
[SCSI] sd: fix bug in SCSI async probing The async split up of probing in sd.c created a potential failure case where something goes wrong with device_add(), but which we don't recover properly. Since, in general, asynchronous error handling is hard, move the device_add() into the asynchronous path (it should be fast) and make sure all the deferred processing cannot fail. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>