block: check for dying queue in generic_make_request()

2014-04-16 Thread Asai Thambi S P
Check for dying queue is in request queue interface, but not for direct use of make_request(). When a mounted device is surprise removed, block drivers delete gendisk and cleanup request queue. As the reference count is non-zero, these structures continue to exist and any further I/O request is

block: check for dying queue in generic_make_request()

2014-04-16 Thread Asai Thambi S P
Check for dying queue is in request queue interface, but not for direct use of make_request(). When a mounted device is surprise removed, block drivers delete gendisk and cleanup request queue. As the reference count is non-zero, these structures continue to exist and any further I/O request is