diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-03-31 10:03:38 +0900 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-18 11:47:19 -0500 |
commit | d45ac4fa8f277e1ec5acfb67ce5d6406555760cf (patch) | |
tree | f620055da979b1af58bfdac16f35f90cd67e6f13 /mm | |
parent | 0e4ff797d7f2f2bb860b8f31dc5d1f2273b2f05a (diff) | |
download | kernel_samsung_tuna-d45ac4fa8f277e1ec5acfb67ce5d6406555760cf.zip kernel_samsung_tuna-d45ac4fa8f277e1ec5acfb67ce5d6406555760cf.tar.gz kernel_samsung_tuna-d45ac4fa8f277e1ec5acfb67ce5d6406555760cf.tar.bz2 |
[SCSI] bsg: takes a ref to struct device in fops->open
bsg_register_queue() takes a ref to struct device that a caller
passes. For example, bsg takes a ref to the sdev_gendev for scsi
devices. However, bsg doesn't inrease the refcount in fops->open. So
while an application opens a bsg device, the scsi device that the bsg
device holds can go away (bsg also takes a ref to a queue, but it
doesn't prevent the device from going away).
With this patch, bsg increases the refcount of struct device in
fops->open and decreases it in fops->release.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions