Repository navigation
Commit da071b4
libata: fix shutdown warning message printing
Unlocking ap->lock and ssleeping don't work because SCSI commands can
be issued from completion path without context. Reimplement delayed
completion by allowing translation functions to override
qc->scsidone(), storing the original completion function to
scmd->scsi_done() and overriding qc->scsidone() with a function which
schedules delayed invocation of scmd->scsi_done().
This isn't pretty at all but all the ugly parts are thankfully
contained in the stop translation path where the compat feature is
implemented.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>1 parent 3cadbcc commit da071b4
1 file changed
Lines changed: 27 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
896 | 913 | | |
897 | 914 | | |
898 | 915 | | |
| |||
952 | 969 | | |
953 | 970 | | |
954 | 971 | | |
955 | | - | |
| 972 | + | |
956 | 973 | | |
957 | | - | |
958 | | - | |
| 974 | + | |
959 | 975 | | |
960 | 976 | | |
961 | 977 | | |
962 | 978 | | |
963 | 979 | | |
964 | 980 | | |
965 | | - | |
966 | | - | |
967 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
968 | 987 | | |
969 | 988 | | |
970 | 989 | | |
| |||
1488 | 1507 | | |
1489 | 1508 | | |
1490 | 1509 | | |
1491 | | - | |
| 1510 | + | |
1492 | 1511 | | |
1493 | 1512 | | |
1494 | 1513 | | |
1495 | 1514 | | |
1496 | 1515 | | |
1497 | 1516 | | |
1498 | | - | |
| 1517 | + | |
1499 | 1518 | | |
1500 | 1519 | | |
1501 | 1520 | | |
| |||
0 commit comments