aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorJames Bottomley <[email protected]>2011-05-25 20:52:14 +0000
committerJames Bottomley <[email protected]>2011-06-02 09:34:43 +0000
commite73e079bf128d68284efedeba1fbbc18d78610f9 (patch)
tree7477ba6759346155bb784e9719fe68bab89ee88e /fs/jbd2/commit.c
parentRevert "mm: fail GFP_DMA allocations when ZONE_DMA is not configured" (diff)
downloadkernel-e73e079bf128d68284efedeba1fbbc18d78610f9.tar.gz
kernel-e73e079bf128d68284efedeba1fbbc18d78610f9.zip
[SCSI] Fix oops caused by queue refcounting failure
In certain circumstances, we can get an oops from a torn down device. Most notably this is from CD roms trying to call scsi_ioctl. The root cause of the problem is the fact that after scsi_remove_device() has been called, the queue is fully torn down. This is actually wrong since the queue can be used until the sdev release function is called. Therefore, we add an extra reference to the queue which is released in sdev->release, so the queue always exists. Reported-by: Parag Warudkar <[email protected]> Cc: [email protected] Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions