diff options
author | Stefan Weinhuber <wein@de.ibm.com> | 2008-02-19 17:29:27 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-02-19 17:29:33 +0300 |
commit | 03513bccad33667ed738cfd96dc5757e539e0bdb (patch) | |
tree | fd6d91ac38deb371bb29b567894056a8c8f9e4e0 /include/asm-s390 | |
parent | 11ab244c9faead91683a12e4cb10d26b279bb4aa (diff) | |
download | linux-03513bccad33667ed738cfd96dc5757e539e0bdb.tar.xz |
[S390] dasd: fix locking in __dasd_device_process_final_queue
After setting the status of the cqr and releasing the lock for the
block cqr queue, we call the cqr callback function, which will usually
just trigger the dasd_block_tasklet. But when the tasklet is already
running the cqr might be processed before we invoke the callback
function. In rare cases the callback pointer may already be invalid
by the time we want to call it, which will result in a panic.
Solution: Call the callback function first and then release the lock.
Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
0 files changed, 0 insertions, 0 deletions