Pass suspend_reopen flag to dev_io.
This commit is contained in:
parent
047cc090e4
commit
6ef71b8198
@ -120,9 +120,13 @@ int rw_flag; /* READING or WRITING */
|
|||||||
/* Character special files. */
|
/* Character special files. */
|
||||||
if (char_spec) {
|
if (char_spec) {
|
||||||
dev_t dev;
|
dev_t dev;
|
||||||
/*dev = (dev_t) f->filp_ino->i_zone[0];*/
|
int suspend_reopen;
|
||||||
|
|
||||||
|
suspend_reopen= (f->filp_state != FS_NORMAL);
|
||||||
|
|
||||||
dev = (dev_t) vp->v_sdev;
|
dev = (dev_t) vp->v_sdev;
|
||||||
r = dev_io(op, dev, usr, m_in.buffer, position, m_in.nbytes, oflags);
|
r = dev_io(op, dev, usr, m_in.buffer, position, m_in.nbytes, oflags,
|
||||||
|
suspend_reopen);
|
||||||
if (r >= 0) {
|
if (r >= 0) {
|
||||||
cum_io = r;
|
cum_io = r;
|
||||||
position = add64ul(position, r);
|
position = add64ul(position, r);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user